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

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

Issue 150213: Add a ExtensionBrowserTest base class (Closed)
Patch Set: added timeouts fixed other tests Created 11 years, 5 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/tab_contents/tab_contents.h" 5 #include "chrome/browser/tab_contents/tab_contents.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "base/file_version_info.h" 9 #include "base/file_version_info.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 1844 matching lines...) Expand 10 before | Expand all | Expand 10 after
1855 // want web sites to see a referrer of "chrome://blah" (and some 1855 // want web sites to see a referrer of "chrome://blah" (and some
1856 // chrome: URLs might have search terms or other stuff we don't want to 1856 // chrome: URLs might have search terms or other stuff we don't want to
1857 // send to the site), so we send no referrer. 1857 // send to the site), so we send no referrer.
1858 OpenURL(url, GURL(), disposition, 1858 OpenURL(url, GURL(), disposition,
1859 render_manager_.dom_ui()->link_transition_type()); 1859 render_manager_.dom_ui()->link_transition_type());
1860 } else { 1860 } else {
1861 OpenURL(url, referrer, disposition, PageTransition::LINK); 1861 OpenURL(url, referrer, disposition, PageTransition::LINK);
1862 } 1862 }
1863 } 1863 }
1864 1864
1865 void TabContents::DomOperationResponse(const std::string& json_string,
1866 int automation_id) {
1867 DomOperationNotificationDetails details(json_string, automation_id);
1868 NotificationService::current()->Notify(
1869 NotificationType::DOM_OPERATION_RESPONSE, Source<TabContents>(this),
1870 Details<DomOperationNotificationDetails>(&details));
1871 }
1872
1873 void TabContents::ProcessDOMUIMessage(const std::string& message, 1865 void TabContents::ProcessDOMUIMessage(const std::string& message,
1874 const std::string& content, 1866 const std::string& content,
1875 int request_id, 1867 int request_id,
1876 bool has_callback) { 1868 bool has_callback) {
1877 if (!render_manager_.dom_ui()) { 1869 if (!render_manager_.dom_ui()) {
1878 // We shouldn't get a DOM UI message when we haven't enabled the DOM UI. 1870 // We shouldn't get a DOM UI message when we haven't enabled the DOM UI.
1879 // Because the renderer might be owned and sending random messages, we need 1871 // Because the renderer might be owned and sending random messages, we need
1880 // to ignore these inproper ones. 1872 // to ignore these inproper ones.
1881 NOTREACHED(); 1873 NOTREACHED();
1882 return; 1874 return;
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
2348 NavigationController::LoadCommittedDetails& committed_details = 2340 NavigationController::LoadCommittedDetails& committed_details =
2349 *(Details<NavigationController::LoadCommittedDetails>(details).ptr()); 2341 *(Details<NavigationController::LoadCommittedDetails>(details).ptr());
2350 ExpireInfoBars(committed_details); 2342 ExpireInfoBars(committed_details);
2351 break; 2343 break;
2352 } 2344 }
2353 2345
2354 default: 2346 default:
2355 NOTREACHED(); 2347 NOTREACHED();
2356 } 2348 }
2357 } 2349 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.h ('k') | chrome/browser/views/extensions/extension_shelf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698