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

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

Issue 10443091: Make BrowserMainParts have an empty implementation to make embedding easier. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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/public/browser/browser_main_parts.cc ('k') | content/shell/shell_browser_main_parts.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_BROWSER_MAIN_PARTS_H_ 5 #ifndef CONTENT_SHELL_SHELL_BROWSER_MAIN_PARTS_H_
6 #define CONTENT_SHELL_SHELL_BROWSER_MAIN_PARTS_H_ 6 #define CONTENT_SHELL_SHELL_BROWSER_MAIN_PARTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "content/public/browser/browser_main_parts.h" 11 #include "content/public/browser/browser_main_parts.h"
12 12
13 namespace base { 13 namespace base {
14 class Thread; 14 class Thread;
15 } 15 }
16 16
17 namespace content { 17 namespace content {
18 18
19 class ShellBrowserContext; 19 class ShellBrowserContext;
20 class ShellDevToolsDelegate; 20 class ShellDevToolsDelegate;
21 struct MainFunctionParams; 21 struct MainFunctionParams;
22 22
23 class ShellBrowserMainParts : public BrowserMainParts { 23 class ShellBrowserMainParts : public BrowserMainParts {
24 public: 24 public:
25 explicit ShellBrowserMainParts(const content::MainFunctionParams& parameters); 25 explicit ShellBrowserMainParts(const content::MainFunctionParams& parameters);
26 virtual ~ShellBrowserMainParts(); 26 virtual ~ShellBrowserMainParts();
27 27
28 // content::BrowserMainParts overrides. 28 // content::BrowserMainParts overrides.
29 virtual void PreEarlyInitialization() OVERRIDE; 29 virtual void PreEarlyInitialization() OVERRIDE;
30 virtual void PostEarlyInitialization() OVERRIDE {}
31 virtual void PreMainMessageLoopStart() OVERRIDE; 30 virtual void PreMainMessageLoopStart() OVERRIDE;
32 virtual void PostMainMessageLoopStart() OVERRIDE {}
33 virtual void ToolkitInitialized() OVERRIDE {}
34 virtual int PreCreateThreads() OVERRIDE;
35 virtual void PreMainMessageLoopRun() OVERRIDE; 31 virtual void PreMainMessageLoopRun() OVERRIDE;
36 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE;
37 virtual void PostMainMessageLoopRun() OVERRIDE; 32 virtual void PostMainMessageLoopRun() OVERRIDE;
38 virtual void PostDestroyThreads() OVERRIDE {}
39 33
40 ShellDevToolsDelegate* devtools_delegate() { return devtools_delegate_; } 34 ShellDevToolsDelegate* devtools_delegate() { return devtools_delegate_; }
41 35
42 ShellBrowserContext* browser_context() { return browser_context_.get(); } 36 ShellBrowserContext* browser_context() { return browser_context_.get(); }
43 37
44 private: 38 private:
45 scoped_ptr<ShellBrowserContext> browser_context_; 39 scoped_ptr<ShellBrowserContext> browser_context_;
46 40
47 ShellDevToolsDelegate* devtools_delegate_; 41 ShellDevToolsDelegate* devtools_delegate_;
48 42
49 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); 43 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts);
50 }; 44 };
51 45
52 } // namespace content 46 } // namespace content
53 47
54 #endif // CONTENT_SHELL_SHELL_BROWSER_MAIN_PARTS_H_ 48 #endif // CONTENT_SHELL_SHELL_BROWSER_MAIN_PARTS_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_main_parts.cc ('k') | content/shell/shell_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698