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

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

Issue 10809016: Move content_shell and content_browsertests code into the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix android Created 8 years, 5 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
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/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "content/public/browser/content_browser_client.h" 12 #include "content/public/browser/content_browser_client.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 class ShellBrowserContext; 16 class ShellBrowserContext;
17 class ShellBrowserMainParts; 17 class ShellBrowserMainParts;
18 class ShellResourceDispatcherHostDelegate; 18 class ShellResourceDispatcherHostDelegate;
19 19
20 class ShellContentBrowserClient : public ContentBrowserClient { 20 class ShellContentBrowserClient : public ContentBrowserClient {
21 public: 21 public:
22 ShellContentBrowserClient(); 22 ShellContentBrowserClient();
23 virtual ~ShellContentBrowserClient(); 23 virtual ~ShellContentBrowserClient();
24 24
25 // content::ContentBrowserClient overrides. 25 // ContentBrowserClient overrides.
26 virtual BrowserMainParts* CreateBrowserMainParts( 26 virtual BrowserMainParts* CreateBrowserMainParts(
27 const content::MainFunctionParams& parameters) OVERRIDE; 27 const MainFunctionParams& parameters) OVERRIDE;
28 virtual void RenderViewHostCreated( 28 virtual void RenderViewHostCreated(
29 RenderViewHost* render_view_host) OVERRIDE; 29 RenderViewHost* render_view_host) OVERRIDE;
30 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, 30 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line,
31 int child_process_id) OVERRIDE; 31 int child_process_id) OVERRIDE;
32 virtual void ResourceDispatcherHostCreated() OVERRIDE; 32 virtual void ResourceDispatcherHostCreated() OVERRIDE;
33 virtual AccessTokenStore* CreateAccessTokenStore() OVERRIDE; 33 virtual AccessTokenStore* CreateAccessTokenStore() OVERRIDE;
34 virtual std::string GetDefaultDownloadName() OVERRIDE; 34 virtual std::string GetDefaultDownloadName() OVERRIDE;
35 35
36 #if defined(OS_ANDROID) 36 #if defined(OS_ANDROID)
37 virtual void GetAdditionalMappedFilesForChildProcess( 37 virtual void GetAdditionalMappedFilesForChildProcess(
38 const CommandLine& command_line, 38 const CommandLine& command_line,
39 base::GlobalDescriptors::Mapping* mappings) OVERRIDE; 39 base::GlobalDescriptors::Mapping* mappings) OVERRIDE;
40 #endif 40 #endif
41 41
42 ShellBrowserContext* browser_context(); 42 ShellBrowserContext* browser_context();
43 43
44 private: 44 private:
45 scoped_ptr<ShellResourceDispatcherHostDelegate> 45 scoped_ptr<ShellResourceDispatcherHostDelegate>
46 resource_dispatcher_host_delegate_; 46 resource_dispatcher_host_delegate_;
47 47
48 ShellBrowserMainParts* shell_browser_main_parts_; 48 ShellBrowserMainParts* shell_browser_main_parts_;
49 }; 49 };
50 50
51 } // namespace content 51 } // namespace content
52 52
53 #endif // CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ 53 #endif // CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/shell/shell_browser_main_parts.cc ('k') | content/shell/shell_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698