summaryrefslogtreecommitdiff
path: root/chromium/ash/shell/content_client/shell_content_browser_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ash/shell/content_client/shell_content_browser_client.h')
-rw-r--r--chromium/ash/shell/content_client/shell_content_browser_client.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/chromium/ash/shell/content_client/shell_content_browser_client.h b/chromium/ash/shell/content_client/shell_content_browser_client.h
new file mode 100644
index 00000000000..d90909aa656
--- /dev/null
+++ b/chromium/ash/shell/content_client/shell_content_browser_client.h
@@ -0,0 +1,47 @@
+// Copyright (c) 2012 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 ASH_SHELL_CONTENT_CLIENT_SHELL_CONTENT_BROWSER_CLIENT_H_
+#define ASH_SHELL_CONTENT_CLIENT_SHELL_CONTENT_BROWSER_CLIENT_H_
+
+#include <string>
+
+#include "base/compiler_specific.h"
+#include "content/public/browser/content_browser_client.h"
+
+namespace content {
+class ShellBrowserContext;
+class ShellBrowserMainParts;
+class ShellResourceDispatcherHostDelegate;
+}
+
+namespace ash {
+namespace shell {
+
+class ShellBrowserMainParts;
+
+class ShellContentBrowserClient : public content::ContentBrowserClient {
+ public:
+ ShellContentBrowserClient();
+ virtual ~ShellContentBrowserClient();
+
+ // Overridden from content::ContentBrowserClient:
+ virtual content::BrowserMainParts* CreateBrowserMainParts(
+ const content::MainFunctionParams& parameters) OVERRIDE;
+ virtual net::URLRequestContextGetter* CreateRequestContext(
+ content::BrowserContext* browser_context,
+ content::ProtocolHandlerMap* protocol_handlers) OVERRIDE;
+
+ content::ShellBrowserContext* browser_context();
+
+ private:
+ ShellBrowserMainParts* shell_browser_main_parts_;
+
+ DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient);
+};
+
+} // namespace shell
+} // namespace ash
+
+#endif // ASH_SHELL_CONTENT_CLIENT_SHELL_CONTENT_BROWSER_CLIENT_H_