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

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

Issue 9146028: Define the public interface for content browser SiteInstance. This interface is implemented by th... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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 | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/browser_navigator.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 "chrome/browser/ui/browser.h" 5 #include "chrome/browser/ui/browser.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <shellapi.h> 9 #include <shellapi.h>
10 #endif // OS_WIN 10 #endif // OS_WIN
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 #include "chrome/common/extensions/extension.h" 141 #include "chrome/common/extensions/extension.h"
142 #include "chrome/common/extensions/extension_constants.h" 142 #include "chrome/common/extensions/extension_constants.h"
143 #include "chrome/common/pref_names.h" 143 #include "chrome/common/pref_names.h"
144 #include "chrome/common/profiling.h" 144 #include "chrome/common/profiling.h"
145 #include "chrome/common/url_constants.h" 145 #include "chrome/common/url_constants.h"
146 #include "chrome/common/web_apps.h" 146 #include "chrome/common/web_apps.h"
147 #include "content/browser/browser_url_handler.h" 147 #include "content/browser/browser_url_handler.h"
148 #include "content/browser/child_process_security_policy.h" 148 #include "content/browser/child_process_security_policy.h"
149 #include "content/browser/host_zoom_map.h" 149 #include "content/browser/host_zoom_map.h"
150 #include "content/browser/renderer_host/render_view_host.h" 150 #include "content/browser/renderer_host/render_view_host.h"
151 #include "content/browser/site_instance.h"
152 #include "content/browser/tab_contents/interstitial_page.h" 151 #include "content/browser/tab_contents/interstitial_page.h"
153 #include "content/public/browser/devtools_manager.h" 152 #include "content/public/browser/devtools_manager.h"
154 #include "content/public/browser/download_item.h" 153 #include "content/public/browser/download_item.h"
155 #include "content/public/browser/download_manager.h" 154 #include "content/public/browser/download_manager.h"
156 #include "content/public/browser/invalidate_type.h" 155 #include "content/public/browser/invalidate_type.h"
157 #include "content/public/browser/navigation_controller.h" 156 #include "content/public/browser/navigation_controller.h"
158 #include "content/public/browser/navigation_entry.h" 157 #include "content/public/browser/navigation_entry.h"
159 #include "content/public/browser/notification_details.h" 158 #include "content/public/browser/notification_details.h"
160 #include "content/public/browser/notification_service.h" 159 #include "content/public/browser/notification_service.h"
161 #include "content/public/browser/plugin_service.h" 160 #include "content/public/browser/plugin_service.h"
161 #include "content/public/browser/site_instance.h"
162 #include "content/public/browser/user_metrics.h" 162 #include "content/public/browser/user_metrics.h"
163 #include "content/public/browser/web_contents.h" 163 #include "content/public/browser/web_contents.h"
164 #include "content/public/browser/web_contents_view.h" 164 #include "content/public/browser/web_contents_view.h"
165 #include "content/public/browser/web_intents_dispatcher.h" 165 #include "content/public/browser/web_intents_dispatcher.h"
166 #include "content/public/common/content_restriction.h" 166 #include "content/public/common/content_restriction.h"
167 #include "content/public/common/content_switches.h" 167 #include "content/public/common/content_switches.h"
168 #include "content/public/common/page_zoom.h" 168 #include "content/public/common/page_zoom.h"
169 #include "grit/chromium_strings.h" 169 #include "grit/chromium_strings.h"
170 #include "grit/generated_resources.h" 170 #include "grit/generated_resources.h"
171 #include "grit/locale_settings.h" 171 #include "grit/locale_settings.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 #if defined(FILE_MANAGER_EXTENSION) 214 #if defined(FILE_MANAGER_EXTENSION)
215 #include "chrome/browser/extensions/file_manager_util.h" 215 #include "chrome/browser/extensions/file_manager_util.h"
216 #endif 216 #endif
217 217
218 using base::TimeDelta; 218 using base::TimeDelta;
219 using content::NavigationController; 219 using content::NavigationController;
220 using content::NavigationEntry; 220 using content::NavigationEntry;
221 using content::OpenURLParams; 221 using content::OpenURLParams;
222 using content::PluginService; 222 using content::PluginService;
223 using content::Referrer; 223 using content::Referrer;
224 using content::SiteInstance;
224 using content::SSLStatus; 225 using content::SSLStatus;
225 using content::UserMetricsAction; 226 using content::UserMetricsAction;
226 using content::WebContents; 227 using content::WebContents;
227 228
228 /////////////////////////////////////////////////////////////////////////////// 229 ///////////////////////////////////////////////////////////////////////////////
229 230
230 namespace { 231 namespace {
231 232
232 // The URL to be loaded to display Help. 233 // The URL to be loaded to display Help.
233 const char kHelpContentUrl[] = 234 const char kHelpContentUrl[] =
(...skipping 5265 matching lines...) Expand 10 before | Expand all | Expand 10 after
5499 local_state->SetBoolean(prefs::kShouldShowFirstRunBubble, false); 5500 local_state->SetBoolean(prefs::kShouldShowFirstRunBubble, false);
5500 window_->GetLocationBar()->ShowFirstRunBubble(); 5501 window_->GetLocationBar()->ShowFirstRunBubble();
5501 } else { 5502 } else {
5502 GlobalErrorService* service = 5503 GlobalErrorService* service =
5503 GlobalErrorServiceFactory::GetForProfile(profile()); 5504 GlobalErrorServiceFactory::GetForProfile(profile());
5504 GlobalError* error = service->GetFirstGlobalErrorWithBubbleView(); 5505 GlobalError* error = service->GetFirstGlobalErrorWithBubbleView();
5505 if (error) 5506 if (error)
5506 error->ShowBubbleView(this); 5507 error->ShowBubbleView(this);
5507 } 5508 }
5508 } 5509 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/browser_navigator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698