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

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

Issue 6721021: Move a bunch of renderer->browser messages to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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
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 // Implements the Chrome Extensions WebNavigation API. 5 // Implements the Chrome Extensions WebNavigation API.
6 6
7 #include "chrome/browser/extensions/extension_webnavigation_api.h" 7 #include "chrome/browser/extensions/extension_webnavigation_api.h"
8 8
9 #include "base/json/json_writer.h" 9 #include "base/json/json_writer.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
11 #include "base/time.h" 11 #include "base/time.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/extensions/extension_event_router.h" 13 #include "chrome/browser/extensions/extension_event_router.h"
14 #include "chrome/browser/extensions/extension_tabs_module.h" 14 #include "chrome/browser/extensions/extension_tabs_module.h"
15 #include "chrome/browser/extensions/extension_webnavigation_api_constants.h" 15 #include "chrome/browser/extensions/extension_webnavigation_api_constants.h"
16 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/common/render_messages_params.h"
18 #include "chrome/common/url_constants.h" 17 #include "chrome/common/url_constants.h"
19 #include "content/browser/tab_contents/navigation_controller.h" 18 #include "content/browser/tab_contents/navigation_controller.h"
20 #include "content/browser/tab_contents/provisional_load_details.h" 19 #include "content/browser/tab_contents/provisional_load_details.h"
21 #include "content/browser/tab_contents/tab_contents.h" 20 #include "content/browser/tab_contents/tab_contents.h"
22 #include "content/common/notification_service.h" 21 #include "content/common/notification_service.h"
22 #include "content/common/view_messages.h"
23 #include "net/base/net_errors.h" 23 #include "net/base/net_errors.h"
24 24
25 namespace keys = extension_webnavigation_api_constants; 25 namespace keys = extension_webnavigation_api_constants;
26 26
27 namespace { 27 namespace {
28 28
29 // URL schemes for which we'll send events. 29 // URL schemes for which we'll send events.
30 const char* kValidSchemes[] = { 30 const char* kValidSchemes[] = {
31 chrome::kHttpScheme, 31 chrome::kHttpScheme,
32 chrome::kHttpsScheme, 32 chrome::kHttpsScheme,
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 DispatchOnCommitted(controller, details); 415 DispatchOnCommitted(controller, details);
416 DispatchOnDOMContentLoaded(controller, 416 DispatchOnDOMContentLoaded(controller,
417 details->url(), 417 details->url(),
418 details->main_frame(), 418 details->main_frame(),
419 details->frame_id()); 419 details->frame_id());
420 DispatchOnCompleted(controller, 420 DispatchOnCompleted(controller,
421 details->url(), 421 details->url(),
422 details->main_frame(), 422 details->main_frame(),
423 details->frame_id()); 423 details->frame_id());
424 } 424 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698