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

Side by Side Diff: content/browser/browser_main_loop.cc

Issue 8387039: Move content_restriction.h and main_function_params.h to content/public/common, and put them in t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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/browser/browser_main_loop.h ('k') | content/browser/mock_content_browser_client.h » ('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) 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/browser/browser_main_loop.h" 5 #include "content/browser/browser_main_loop.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/metrics/field_trial.h" 11 #include "base/metrics/field_trial.h"
12 #include "base/metrics/histogram.h" 12 #include "base/metrics/histogram.h"
13 #include "base/threading/thread_restrictions.h" 13 #include "base/threading/thread_restrictions.h"
14 #include "base/tracked_objects.h" 14 #include "base/tracked_objects.h"
15 #include "content/browser/browser_thread_impl.h" 15 #include "content/browser/browser_thread_impl.h"
16 #include "content/common/hi_res_timer_manager.h" 16 #include "content/common/hi_res_timer_manager.h"
17 #include "content/common/main_function_params.h"
18 #include "content/common/sandbox_policy.h" 17 #include "content/common/sandbox_policy.h"
19 #include "content/public/browser/browser_main_parts.h" 18 #include "content/public/browser/browser_main_parts.h"
20 #include "content/public/browser/content_browser_client.h" 19 #include "content/public/browser/content_browser_client.h"
21 #include "content/public/common/content_switches.h" 20 #include "content/public/common/content_switches.h"
21 #include "content/public/common/main_function_params.h"
22 #include "content/public/common/result_codes.h" 22 #include "content/public/common/result_codes.h"
23 #include "crypto/nss_util.h" 23 #include "crypto/nss_util.h"
24 #include "net/base/network_change_notifier.h" 24 #include "net/base/network_change_notifier.h"
25 #include "net/base/ssl_config_service.h" 25 #include "net/base/ssl_config_service.h"
26 #include "net/socket/client_socket_factory.h" 26 #include "net/socket/client_socket_factory.h"
27 #include "net/socket/tcp_client_socket.h" 27 #include "net/socket/tcp_client_socket.h"
28 28
29 #if defined(OS_WIN) 29 #if defined(OS_WIN)
30 #include <windows.h> 30 #include <windows.h>
31 #include <commctrl.h> 31 #include <commctrl.h>
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 } 140 }
141 #endif 141 #endif
142 142
143 } // namespace 143 } // namespace
144 144
145 namespace content { 145 namespace content {
146 146
147 147
148 // BrowserMainLoop construction / destructione ============================= 148 // BrowserMainLoop construction / destructione =============================
149 149
150 BrowserMainLoop::BrowserMainLoop(const MainFunctionParams& parameters) 150 BrowserMainLoop::BrowserMainLoop(const content::MainFunctionParams& parameters)
151 : parameters_(parameters), 151 : parameters_(parameters),
152 parsed_command_line_(parameters.command_line), 152 parsed_command_line_(parameters.command_line),
153 result_code_(content::RESULT_CODE_NORMAL_EXIT) { 153 result_code_(content::RESULT_CODE_NORMAL_EXIT) {
154 #if defined(OS_WIN) 154 #if defined(OS_WIN)
155 OleInitialize(NULL); 155 OleInitialize(NULL);
156 #endif 156 #endif
157 } 157 }
158 158
159 BrowserMainLoop::~BrowserMainLoop() { 159 BrowserMainLoop::~BrowserMainLoop() {
160 // Destroy added parts in reverse order. 160 // Destroy added parts in reverse order.
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 MessageLoopForUI::current()->PostTask(FROM_HERE, parameters_.ui_task); 359 MessageLoopForUI::current()->PostTask(FROM_HERE, parameters_.ui_task);
360 360
361 #if defined(OS_MACOSX) 361 #if defined(OS_MACOSX)
362 MessageLoopForUI::current()->Run(); 362 MessageLoopForUI::current()->Run();
363 #else 363 #else
364 MessageLoopForUI::current()->RunWithDispatcher(NULL); 364 MessageLoopForUI::current()->RunWithDispatcher(NULL);
365 #endif 365 #endif
366 } 366 }
367 367
368 } // namespace content 368 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_main_loop.h ('k') | content/browser/mock_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698