OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/threading/thread.h" | 10 #include "base/threading/thread.h" |
11 #include "base/threading/thread_restrictions.h" | 11 #include "base/threading/thread_restrictions.h" |
12 #include "content/browser/browser_process_sub_thread.h" | 12 #include "content/browser/browser_process_sub_thread.h" |
13 #include "content/browser/download/download_file_manager.h" | 13 #include "content/browser/download/download_file_manager.h" |
14 #include "content/browser/download/save_file_manager.h" | 14 #include "content/browser/download/save_file_manager.h" |
15 #include "content/browser/plugin_service.h" | 15 #include "content/browser/plugin_service_impl.h" |
16 #include "content/browser/renderer_host/resource_dispatcher_host.h" | 16 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
17 #include "content/shell/shell.h" | 17 #include "content/shell/shell.h" |
18 #include "content/shell/shell_browser_context.h" | 18 #include "content/shell/shell_browser_context.h" |
19 #include "content/shell/shell_content_browser_client.h" | 19 #include "content/shell/shell_content_browser_client.h" |
20 #include "net/base/net_module.h" | 20 #include "net/base/net_module.h" |
21 #include "ui/base/clipboard/clipboard.h" | 21 #include "ui/base/clipboard/clipboard.h" |
22 | 22 |
23 namespace content { | 23 namespace content { |
24 | 24 |
25 static GURL GetStartupURL() { | 25 static GURL GetStartupURL() { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 return resource_dispatcher_host_.get(); | 85 return resource_dispatcher_host_.get(); |
86 } | 86 } |
87 | 87 |
88 ui::Clipboard* ShellBrowserMainParts::GetClipboard() { | 88 ui::Clipboard* ShellBrowserMainParts::GetClipboard() { |
89 if (!clipboard_.get()) | 89 if (!clipboard_.get()) |
90 clipboard_.reset(new ui::Clipboard()); | 90 clipboard_.reset(new ui::Clipboard()); |
91 return clipboard_.get(); | 91 return clipboard_.get(); |
92 } | 92 } |
93 | 93 |
94 } // namespace | 94 } // namespace |
OLD | NEW |