2012-04-03 03:34:16 +02:00
|
|
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef CEF_LIBCEF_BROWSER_CONTENT_BROWSER_CLIENT_H_
|
|
|
|
#define CEF_LIBCEF_BROWSER_CONTENT_BROWSER_CLIENT_H_
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <utility>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "base/compiler_specific.h"
|
|
|
|
#include "base/memory/scoped_ptr.h"
|
|
|
|
#include "content/public/browser/content_browser_client.h"
|
|
|
|
|
|
|
|
class CefBrowserMainParts;
|
|
|
|
class CefMediaObserver;
|
2012-06-25 23:21:27 +02:00
|
|
|
class CefResourceDispatcherHostDelegate;
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
namespace content {
|
2012-09-28 22:14:02 +02:00
|
|
|
class PluginServiceFilter;
|
2012-04-03 03:34:16 +02:00
|
|
|
class SiteInstance;
|
|
|
|
}
|
|
|
|
|
|
|
|
class CefContentBrowserClient : public content::ContentBrowserClient {
|
|
|
|
public:
|
|
|
|
CefContentBrowserClient();
|
|
|
|
virtual ~CefContentBrowserClient();
|
|
|
|
|
|
|
|
CefBrowserMainParts* browser_main_parts() const {
|
|
|
|
return browser_main_parts_;
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual content::BrowserMainParts* CreateBrowserMainParts(
|
|
|
|
const content::MainFunctionParams& parameters) OVERRIDE;
|
|
|
|
virtual void RenderProcessHostCreated(
|
|
|
|
content::RenderProcessHost* host) OVERRIDE;
|
|
|
|
virtual void AppendExtraCommandLineSwitches(CommandLine* command_line,
|
|
|
|
int child_process_id) OVERRIDE;
|
2012-09-28 00:52:15 +02:00
|
|
|
virtual content::QuotaPermissionContext*
|
|
|
|
CreateQuotaPermissionContext() OVERRIDE;
|
2012-04-03 03:34:16 +02:00
|
|
|
virtual content::MediaObserver* GetMediaObserver() OVERRIDE;
|
|
|
|
virtual content::AccessTokenStore* CreateAccessTokenStore() OVERRIDE;
|
2012-06-25 23:21:27 +02:00
|
|
|
virtual void ResourceDispatcherHostCreated() OVERRIDE;
|
2012-04-03 03:34:16 +02:00
|
|
|
virtual void OverrideWebkitPrefs(content::RenderViewHost* rvh,
|
|
|
|
const GURL& url,
|
2012-05-18 17:04:56 +02:00
|
|
|
webkit_glue::WebPreferences* prefs) OVERRIDE;
|
2012-04-03 03:34:16 +02:00
|
|
|
virtual std::string GetDefaultDownloadName() OVERRIDE;
|
2012-09-11 00:19:19 +02:00
|
|
|
#if defined(OS_WIN)
|
|
|
|
const wchar_t* GetResourceDllName() OVERRIDE;
|
|
|
|
#endif
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
CefBrowserMainParts* browser_main_parts_;
|
|
|
|
|
|
|
|
scoped_ptr<CefMediaObserver> media_observer_;
|
2012-09-28 22:14:02 +02:00
|
|
|
scoped_ptr<content::PluginServiceFilter> plugin_service_filter_;
|
2012-06-25 23:21:27 +02:00
|
|
|
scoped_ptr<CefResourceDispatcherHostDelegate>
|
|
|
|
resource_dispatcher_host_delegate_;
|
2012-04-03 03:34:16 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CEF_LIBCEF_BROWSER_CONTENT_BROWSER_CLIENT_H_
|