Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Side by Side Diff: content/shell/shell_content_browser_client.h

Issue 13409003: Hide ContentClient getters from embedders so that they they don't reuse content's embedder API. The… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/shell/shell_application_mac.mm ('k') | content/shell/shell_content_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/platform_file.h" 13 #include "base/platform_file.h"
14 #include "content/public/browser/content_browser_client.h" 14 #include "content/public/browser/content_browser_client.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 class ShellBrowserContext; 18 class ShellBrowserContext;
19 class ShellBrowserMainParts; 19 class ShellBrowserMainParts;
20 class ShellResourceDispatcherHostDelegate; 20 class ShellResourceDispatcherHostDelegate;
21 21
22 class ShellContentBrowserClient : public ContentBrowserClient { 22 class ShellContentBrowserClient : public ContentBrowserClient {
23 public: 23 public:
24 // Gets the current instance.
25 static ShellContentBrowserClient* Get();
26
24 ShellContentBrowserClient(); 27 ShellContentBrowserClient();
25 virtual ~ShellContentBrowserClient(); 28 virtual ~ShellContentBrowserClient();
26 29
27 // ContentBrowserClient overrides. 30 // ContentBrowserClient overrides.
28 virtual BrowserMainParts* CreateBrowserMainParts( 31 virtual BrowserMainParts* CreateBrowserMainParts(
29 const MainFunctionParams& parameters) OVERRIDE; 32 const MainFunctionParams& parameters) OVERRIDE;
30 virtual void RenderProcessHostCreated(RenderProcessHost* host) OVERRIDE; 33 virtual void RenderProcessHostCreated(RenderProcessHost* host) OVERRIDE;
31 virtual net::URLRequestContextGetter* CreateRequestContext( 34 virtual net::URLRequestContextGetter* CreateRequestContext(
32 BrowserContext* browser_context, 35 BrowserContext* browser_context,
33 ProtocolHandlerMap* protocol_handlers) OVERRIDE; 36 ProtocolHandlerMap* protocol_handlers) OVERRIDE;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 base::FilePath webkit_source_dir_; 79 base::FilePath webkit_source_dir_;
77 80
78 base::PlatformFile hyphen_dictionary_file_; 81 base::PlatformFile hyphen_dictionary_file_;
79 82
80 ShellBrowserMainParts* shell_browser_main_parts_; 83 ShellBrowserMainParts* shell_browser_main_parts_;
81 }; 84 };
82 85
83 } // namespace content 86 } // namespace content
84 87
85 #endif // CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ 88 #endif // CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/shell/shell_application_mac.mm ('k') | content/shell/shell_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698