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

Side by Side Diff: chrome/browser/browser_main.cc

Issue 15010: Implement extension:// protocol. (Closed)
Patch Set: add missing unit test Created 11 years, 12 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
« no previous file with comments | « chrome/browser/browser.vcproj ('k') | chrome/browser/dom_ui/chrome_url_data_manager.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "sandbox/src/sandbox.h" 8 #include "sandbox/src/sandbox.h"
9 9
10 // TODO(port): several win-only methods have been pulled out of this, but 10 // TODO(port): several win-only methods have been pulled out of this, but
(...skipping 24 matching lines...) Expand all
35 #include "chrome/browser/browser.h" 35 #include "chrome/browser/browser.h"
36 #include "chrome/browser/browser_init.h" 36 #include "chrome/browser/browser_init.h"
37 #include "chrome/browser/browser_list.h" 37 #include "chrome/browser/browser_list.h"
38 #include "chrome/browser/browser_main_win.h" 38 #include "chrome/browser/browser_main_win.h"
39 #include "chrome/browser/browser_prefs.h" 39 #include "chrome/browser/browser_prefs.h"
40 #include "chrome/browser/browser_process_impl.h" 40 #include "chrome/browser/browser_process_impl.h"
41 #include "chrome/browser/browser_shutdown.h" 41 #include "chrome/browser/browser_shutdown.h"
42 #include "chrome/browser/browser_trial.h" 42 #include "chrome/browser/browser_trial.h"
43 #include "chrome/browser/cert_store.h" 43 #include "chrome/browser/cert_store.h"
44 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" 44 #include "chrome/browser/dom_ui/chrome_url_data_manager.h"
45 #include "chrome/browser/extensions/extension_protocol.h"
45 #include "chrome/browser/first_run.h" 46 #include "chrome/browser/first_run.h"
46 #include "chrome/browser/jankometer.h" 47 #include "chrome/browser/jankometer.h"
47 #include "chrome/browser/metrics_service.h" 48 #include "chrome/browser/metrics_service.h"
48 #include "chrome/browser/net/dns_global.h" 49 #include "chrome/browser/net/dns_global.h"
49 #include "chrome/browser/net/sdch_dictionary_fetcher.h" 50 #include "chrome/browser/net/sdch_dictionary_fetcher.h"
50 #include "chrome/browser/plugin_service.h" 51 #include "chrome/browser/plugin_service.h"
51 #include "chrome/browser/printing/print_job_manager.h" 52 #include "chrome/browser/printing/print_job_manager.h"
52 #include "chrome/browser/rlz/rlz.h" 53 #include "chrome/browser/rlz/rlz.h"
53 #include "chrome/browser/shell_integration.h" 54 #include "chrome/browser/shell_integration.h"
54 #include "chrome/browser/url_fixer_upper.h" 55 #include "chrome/browser/url_fixer_upper.h"
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 win_util::ScopedCOMInitializer com_initializer; 395 win_util::ScopedCOMInitializer com_initializer;
395 396
396 // Init the RLZ library. This just binds the dll and schedules a task on the 397 // Init the RLZ library. This just binds the dll and schedules a task on the
397 // file thread to be run sometime later. If this is the first run we record 398 // file thread to be run sometime later. If this is the first run we record
398 // the installation event. 399 // the installation event.
399 RLZTracker::InitRlzDelayed(base::DIR_MODULE, is_first_run); 400 RLZTracker::InitRlzDelayed(base::DIR_MODULE, is_first_run);
400 401
401 // Config the network module so it has access to resources. 402 // Config the network module so it has access to resources.
402 net::NetModule::SetResourceProvider(NetResourceProvider); 403 net::NetModule::SetResourceProvider(NetResourceProvider);
403 404
404 // Register our global network handler for chrome:// URLs. 405 // Register our global network handler for chrome:// and chrome-extension://
406 // URLs.
405 RegisterURLRequestChromeJob(); 407 RegisterURLRequestChromeJob();
408 RegisterExtensionProtocol();
406 409
407 browser_process->InitBrokerServices(broker_services); 410 browser_process->InitBrokerServices(broker_services);
408 411
409 // In unittest mode, this will do nothing. In normal mode, this will create 412 // In unittest mode, this will do nothing. In normal mode, this will create
410 // the global GoogleURLTracker instance, which will promptly go to sleep for 413 // the global GoogleURLTracker instance, which will promptly go to sleep for
411 // five seconds (to avoid slowing startup), and wake up afterwards to see if 414 // five seconds (to avoid slowing startup), and wake up afterwards to see if
412 // it should do anything else. If we don't cause this creation now, it won't 415 // it should do anything else. If we don't cause this creation now, it won't
413 // happen until someone else asks for the tracker, at which point we may no 416 // happen until someone else asks for the tracker, at which point we may no
414 // longer want to sleep for five seconds. 417 // longer want to sleep for five seconds.
415 // 418 //
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 return StartPlatformMessageLoop(); 520 return StartPlatformMessageLoop();
518 } 521 }
519 522
520 #if defined(OS_LINUX) 523 #if defined(OS_LINUX)
521 void StartPlatformMessageLoop() { 524 void StartPlatformMessageLoop() {
522 return 0; 525 return 0;
523 } 526 }
524 #endif 527 #endif
525 528
526 #endif 529 #endif
OLDNEW
« no previous file with comments | « chrome/browser/browser.vcproj ('k') | chrome/browser/dom_ui/chrome_url_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698