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

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

Issue 593037: Remove the temporary scaffolding stubs. (Closed)
Patch Set: fixes Created 10 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
« no previous file with comments | « chrome/browser/bookmarks/bookmark_drag_data.h ('k') | chrome/browser/browser_list_gtk.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/browser.h" 5 #include "chrome/browser/browser.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "app/animation.h" 10 #include "app/animation.h"
11 #include "app/l10n_util.h" 11 #include "app/l10n_util.h"
12 #include "base/base_paths.h" 12 #include "base/base_paths.h"
13 #include "base/command_line.h" 13 #include "base/command_line.h"
14 #include "base/gfx/point.h" 14 #include "base/gfx/point.h"
15 #include "base/keyboard_codes.h" 15 #include "base/keyboard_codes.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/path_service.h" 17 #include "base/path_service.h"
18 #include "base/string_util.h" 18 #include "base/string_util.h"
19 #include "base/thread.h" 19 #include "base/thread.h"
20 #include "chrome/app/chrome_dll_resource.h" 20 #include "chrome/app/chrome_dll_resource.h"
21 #include "chrome/browser/bookmarks/bookmark_model.h" 21 #include "chrome/browser/bookmarks/bookmark_model.h"
22 #include "chrome/browser/bookmarks/bookmark_utils.h" 22 #include "chrome/browser/bookmarks/bookmark_utils.h"
23 #include "chrome/browser/browser_list.h" 23 #include "chrome/browser/browser_list.h"
24 #include "chrome/browser/browser_process.h" 24 #include "chrome/browser/browser_process.h"
25 #include "chrome/browser/browser_shutdown.h" 25 #include "chrome/browser/browser_shutdown.h"
26 #include "chrome/browser/browser_window.h" 26 #include "chrome/browser/browser_window.h"
27 #include "chrome/browser/character_encoding.h" 27 #include "chrome/browser/character_encoding.h"
28 #include "chrome/browser/debugger/devtools_manager.h" 28 #include "chrome/browser/debugger/devtools_manager.h"
29 #include "chrome/browser/debugger/devtools_window.h" 29 #include "chrome/browser/debugger/devtools_window.h"
30 #include "chrome/browser/dock_info.h"
30 #include "chrome/browser/dom_ui/filebrowse_ui.h" 31 #include "chrome/browser/dom_ui/filebrowse_ui.h"
31 #include "chrome/browser/download/download_item_model.h" 32 #include "chrome/browser/download/download_item_model.h"
32 #include "chrome/browser/download/download_manager.h" 33 #include "chrome/browser/download/download_manager.h"
33 #include "chrome/browser/download/download_shelf.h" 34 #include "chrome/browser/download/download_shelf.h"
34 #include "chrome/browser/download/download_started_animation.h" 35 #include "chrome/browser/download/download_started_animation.h"
35 #include "chrome/browser/extensions/crashed_extension_infobar.h" 36 #include "chrome/browser/extensions/crashed_extension_infobar.h"
36 #include "chrome/browser/extensions/extension_browser_event_router.h" 37 #include "chrome/browser/extensions/extension_browser_event_router.h"
37 #include "chrome/browser/extensions/extension_disabled_infobar_delegate.h" 38 #include "chrome/browser/extensions/extension_disabled_infobar_delegate.h"
38 #include "chrome/browser/extensions/extension_shelf_model.h" 39 #include "chrome/browser/extensions/extension_shelf_model.h"
39 #include "chrome/browser/extensions/extension_tabs_module.h" 40 #include "chrome/browser/extensions/extension_tabs_module.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 #include "chrome/browser/download/save_package.h" 94 #include "chrome/browser/download/save_package.h"
94 #include "chrome/browser/ssl/ssl_error_info.h" 95 #include "chrome/browser/ssl/ssl_error_info.h"
95 #include "chrome/browser/shell_integration.h" 96 #include "chrome/browser/shell_integration.h"
96 #include "chrome/browser/task_manager.h" 97 #include "chrome/browser/task_manager.h"
97 #include "chrome/browser/user_data_manager.h" 98 #include "chrome/browser/user_data_manager.h"
98 #include "chrome/browser/view_ids.h" 99 #include "chrome/browser/view_ids.h"
99 #include "chrome/browser/views/location_bar_view.h" 100 #include "chrome/browser/views/location_bar_view.h"
100 #include "chrome/common/child_process_host.h" 101 #include "chrome/common/child_process_host.h"
101 #endif // OS_WIN 102 #endif // OS_WIN
102 103
103 #if !defined(OS_MACOSX)
104 #include "chrome/browser/dock_info.h"
105 #endif
106
107 #if defined(OS_MACOSX) 104 #if defined(OS_MACOSX)
108 #include "chrome/browser/cocoa/find_pasteboard.h" 105 #include "chrome/browser/cocoa/find_pasteboard.h"
109 #endif 106 #endif
110 107
111 using base::TimeDelta; 108 using base::TimeDelta;
112 109
113 // How long we wait before updating the browser chrome while loading a page. 110 // How long we wait before updating the browser chrome while loading a page.
114 static const int kUIUpdateCoalescingTimeMS = 200; 111 static const int kUIUpdateCoalescingTimeMS = 200;
115 112
116 // The URL to be loaded to display Help. 113 // The URL to be loaded to display Help.
(...skipping 3141 matching lines...) Expand 10 before | Expand all | Expand 10 after
3258 if (TabHasUnloadListener(contents)) { 3255 if (TabHasUnloadListener(contents)) {
3259 // If the page has unload listeners, then we tell the renderer to fire 3256 // If the page has unload listeners, then we tell the renderer to fire
3260 // them. Once they have fired, we'll get a message back saying whether 3257 // them. Once they have fired, we'll get a message back saying whether
3261 // to proceed closing the page or not, which sends us back to this method 3258 // to proceed closing the page or not, which sends us back to this method
3262 // with the HasUnloadListener bit cleared. 3259 // with the HasUnloadListener bit cleared.
3263 contents->render_view_host()->FirePageBeforeUnload(false); 3260 contents->render_view_host()->FirePageBeforeUnload(false);
3264 return true; 3261 return true;
3265 } 3262 }
3266 return false; 3263 return false;
3267 } 3264 }
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_drag_data.h ('k') | chrome/browser/browser_list_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698