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

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

Issue 9375017: Support sharing of ContentMain and BrowserMain code with embedded use cases (try #3). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 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_runner.h ('k') | content/shell/shell_browser_main.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_H_ 5 #ifndef CONTENT_SHELL_SHELL_BROWSER_MAIN_H_
6 #define CONTENT_SHELL_SHELL_BROWSER_MAIN_H_ 6 #define CONTENT_SHELL_SHELL_BROWSER_MAIN_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"
(...skipping 14 matching lines...) Expand all
25 struct MainFunctionParams; 25 struct MainFunctionParams;
26 26
27 class ShellBrowserMainParts : public BrowserMainParts { 27 class ShellBrowserMainParts : public BrowserMainParts {
28 public: 28 public:
29 explicit ShellBrowserMainParts(const content::MainFunctionParams& parameters); 29 explicit ShellBrowserMainParts(const content::MainFunctionParams& parameters);
30 virtual ~ShellBrowserMainParts(); 30 virtual ~ShellBrowserMainParts();
31 31
32 virtual void PreEarlyInitialization() OVERRIDE {} 32 virtual void PreEarlyInitialization() OVERRIDE {}
33 virtual void PostEarlyInitialization() OVERRIDE {} 33 virtual void PostEarlyInitialization() OVERRIDE {}
34 virtual void PreMainMessageLoopStart() OVERRIDE {} 34 virtual void PreMainMessageLoopStart() OVERRIDE {}
35 virtual MessageLoop* GetMainMessageLoop() OVERRIDE;
36 virtual void PostMainMessageLoopStart() OVERRIDE {}
35 virtual void ToolkitInitialized() OVERRIDE {} 37 virtual void ToolkitInitialized() OVERRIDE {}
36 virtual void PostMainMessageLoopStart() OVERRIDE {}
37 virtual int PreCreateThreads() OVERRIDE; 38 virtual int PreCreateThreads() OVERRIDE;
38 virtual void PreMainMessageLoopRun() OVERRIDE; 39 virtual void PreMainMessageLoopRun() OVERRIDE;
39 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; 40 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE;
40 virtual void PostMainMessageLoopRun() OVERRIDE; 41 virtual void PostMainMessageLoopRun() OVERRIDE;
41 virtual void PostDestroyThreads() OVERRIDE {} 42 virtual void PostDestroyThreads() OVERRIDE {}
42 43
43 ui::Clipboard* GetClipboard(); 44 ui::Clipboard* GetClipboard();
44 ShellDevToolsDelegate* devtools_delegate() { return devtools_delegate_; } 45 ShellDevToolsDelegate* devtools_delegate() { return devtools_delegate_; }
45 46
46 private: 47 private:
47 scoped_ptr<ShellBrowserContext> browser_context_; 48 scoped_ptr<ShellBrowserContext> browser_context_;
48 49
49 scoped_ptr<ui::Clipboard> clipboard_; 50 scoped_ptr<ui::Clipboard> clipboard_;
50 ShellDevToolsDelegate* devtools_delegate_; 51 ShellDevToolsDelegate* devtools_delegate_;
51 52
52 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); 53 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts);
53 }; 54 };
54 55
55 } // namespace content 56 } // namespace content
56 57
57 #endif // CONTENT_SHELL_SHELL_BROWSER_MAIN_H_ 58 #endif // CONTENT_SHELL_SHELL_BROWSER_MAIN_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_main_runner.h ('k') | content/shell/shell_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698