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

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

Issue 9834092: Content shell: Use only public API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 9 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_context.cc ('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 #include "content/shell/shell_browser_main_parts.h" 5 #include "content/shell/shell_browser_main_parts.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"
11 #include "base/threading/thread.h" 11 #include "base/threading/thread.h"
12 #include "base/threading/thread_restrictions.h" 12 #include "base/threading/thread_restrictions.h"
13 #include "content/browser/browser_process_sub_thread.h"
14 #include "content/browser/download/download_file_manager.h"
15 #include "content/browser/download/save_file_manager.h"
16 #include "content/browser/plugin_service_impl.h"
17 #include "content/public/common/content_switches.h" 13 #include "content/public/common/content_switches.h"
18 #include "content/shell/shell.h" 14 #include "content/shell/shell.h"
19 #include "content/shell/shell_browser_context.h" 15 #include "content/shell/shell_browser_context.h"
20 #include "content/shell/shell_content_browser_client.h" 16 #include "content/shell/shell_content_browser_client.h"
21 #include "content/shell/shell_devtools_delegate.h" 17 #include "content/shell/shell_devtools_delegate.h"
22 #include "content/shell/shell_switches.h" 18 #include "content/shell/shell_switches.h"
19 #include "googleurl/src/gurl.h"
23 #include "net/base/net_module.h" 20 #include "net/base/net_module.h"
24 #include "ui/base/clipboard/clipboard.h" 21 #include "ui/base/clipboard/clipboard.h"
25 22
26 namespace content { 23 namespace content {
27 24
28 static GURL GetStartupURL() { 25 static GURL GetStartupURL() {
29 const CommandLine::StringVector& args = 26 const CommandLine::StringVector& args =
30 CommandLine::ForCurrentProcess()->GetArgs(); 27 CommandLine::ForCurrentProcess()->GetArgs();
31 if (args.empty()) 28 if (args.empty())
32 return GURL("http://www.google.com/"); 29 return GURL("http://www.google.com/");
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 return false; 96 return false;
100 } 97 }
101 98
102 ui::Clipboard* ShellBrowserMainParts::GetClipboard() { 99 ui::Clipboard* ShellBrowserMainParts::GetClipboard() {
103 if (!clipboard_.get()) 100 if (!clipboard_.get())
104 clipboard_.reset(new ui::Clipboard()); 101 clipboard_.reset(new ui::Clipboard());
105 return clipboard_.get(); 102 return clipboard_.get();
106 } 103 }
107 104
108 } // namespace 105 } // namespace
OLDNEW
« no previous file with comments | « content/shell/shell_browser_context.cc ('k') | content/shell/shell_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698