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

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

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/shell/shell_browser_main.h ('k') | content/shell/shell_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 #include "content/shell/shell_browser_main.h" 5 #include "content/shell/shell_browser_main.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 28 matching lines...) Expand all
39 devtools_delegate_(NULL) { 39 devtools_delegate_(NULL) {
40 ShellContentBrowserClient* shell_browser_client = 40 ShellContentBrowserClient* shell_browser_client =
41 static_cast<ShellContentBrowserClient*>( 41 static_cast<ShellContentBrowserClient*>(
42 content::GetContentClient()->browser()); 42 content::GetContentClient()->browser());
43 shell_browser_client->set_shell_browser_main_parts(this); 43 shell_browser_client->set_shell_browser_main_parts(this);
44 } 44 }
45 45
46 ShellBrowserMainParts::~ShellBrowserMainParts() { 46 ShellBrowserMainParts::~ShellBrowserMainParts() {
47 } 47 }
48 48
49 MessageLoop* ShellBrowserMainParts::GetMainMessageLoop() {
50 return NULL;
51 }
52
49 int ShellBrowserMainParts::PreCreateThreads() { 53 int ShellBrowserMainParts::PreCreateThreads() {
50 return 0; 54 return 0;
51 } 55 }
52 56
53 void ShellBrowserMainParts::PreMainMessageLoopRun() { 57 void ShellBrowserMainParts::PreMainMessageLoopRun() {
54 browser_context_.reset(new ShellBrowserContext(this)); 58 browser_context_.reset(new ShellBrowserContext(this));
55 59
56 Shell::PlatformInitialize(); 60 Shell::PlatformInitialize();
57 net::NetModule::SetResourceProvider(Shell::PlatformResourceProvider); 61 net::NetModule::SetResourceProvider(Shell::PlatformResourceProvider);
58 62
(...skipping 28 matching lines...) Expand all
87 return false; 91 return false;
88 } 92 }
89 93
90 ui::Clipboard* ShellBrowserMainParts::GetClipboard() { 94 ui::Clipboard* ShellBrowserMainParts::GetClipboard() {
91 if (!clipboard_.get()) 95 if (!clipboard_.get())
92 clipboard_.reset(new ui::Clipboard()); 96 clipboard_.reset(new ui::Clipboard());
93 return clipboard_.get(); 97 return clipboard_.get();
94 } 98 }
95 99
96 } // namespace 100 } // namespace
OLDNEW
« no previous file with comments | « content/shell/shell_browser_main.h ('k') | content/shell/shell_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698