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: content/browser/renderer_host/render_view_host.cc

Issue 8912009: Move BrowserMessageFilter to public, and into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 9 years 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 #include "content/browser/renderer_host/render_view_host.h" 5 #include "content/browser/renderer_host/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/i18n/rtl.h" 12 #include "base/i18n/rtl.h"
13 #include "base/json/json_reader.h" 13 #include "base/json/json_reader.h"
14 #include "base/message_loop.h" 14 #include "base/message_loop.h"
15 #include "base/stl_util.h" 15 #include "base/stl_util.h"
16 #include "base/string_util.h" 16 #include "base/string_util.h"
17 #include "base/time.h" 17 #include "base/time.h"
18 #include "base/utf_string_conversions.h" 18 #include "base/utf_string_conversions.h"
19 #include "base/values.h" 19 #include "base/values.h"
20 #include "content/browser/browser_message_filter.h"
21 #include "content/browser/child_process_security_policy.h" 20 #include "content/browser/child_process_security_policy.h"
22 #include "content/browser/cross_site_request_manager.h" 21 #include "content/browser/cross_site_request_manager.h"
23 #include "content/browser/host_zoom_map.h" 22 #include "content/browser/host_zoom_map.h"
24 #include "content/browser/in_process_webkit/session_storage_namespace.h" 23 #include "content/browser/in_process_webkit/session_storage_namespace.h"
25 #include "content/browser/power_save_blocker.h" 24 #include "content/browser/power_save_blocker.h"
26 #include "content/browser/renderer_host/render_process_host_impl.h" 25 #include "content/browser/renderer_host/render_process_host_impl.h"
27 #include "content/browser/renderer_host/render_view_host_delegate.h" 26 #include "content/browser/renderer_host/render_view_host_delegate.h"
28 #include "content/browser/renderer_host/render_widget_host.h" 27 #include "content/browser/renderer_host/render_widget_host.h"
29 #include "content/browser/renderer_host/render_widget_host_view.h" 28 #include "content/browser/renderer_host/render_widget_host_view.h"
30 #include "content/browser/site_instance.h" 29 #include "content/browser/site_instance.h"
31 #include "content/common/desktop_notification_messages.h" 30 #include "content/common/desktop_notification_messages.h"
32 #include "content/common/drag_messages.h" 31 #include "content/common/drag_messages.h"
33 #include "content/common/speech_input_messages.h" 32 #include "content/common/speech_input_messages.h"
34 #include "content/common/swapped_out_messages.h" 33 #include "content/common/swapped_out_messages.h"
35 #include "content/common/view_messages.h" 34 #include "content/common/view_messages.h"
36 #include "content/public/browser/browser_context.h" 35 #include "content/public/browser/browser_context.h"
36 #include "content/public/browser/browser_message_filter.h"
37 #include "content/public/browser/content_browser_client.h" 37 #include "content/public/browser/content_browser_client.h"
38 #include "content/public/browser/native_web_keyboard_event.h" 38 #include "content/public/browser/native_web_keyboard_event.h"
39 #include "content/public/browser/notification_details.h" 39 #include "content/public/browser/notification_details.h"
40 #include "content/public/browser/notification_service.h" 40 #include "content/public/browser/notification_service.h"
41 #include "content/public/browser/notification_types.h" 41 #include "content/public/browser/notification_types.h"
42 #include "content/public/browser/render_view_host_observer.h" 42 #include "content/public/browser/render_view_host_observer.h"
43 #include "content/public/browser/user_metrics.h" 43 #include "content/public/browser/user_metrics.h"
44 #include "content/public/common/bindings_policy.h" 44 #include "content/public/common/bindings_policy.h"
45 #include "content/public/common/content_constants.h" 45 #include "content/public/common/content_constants.h"
46 #include "content/public/common/result_codes.h" 46 #include "content/public/common/result_codes.h"
47 #include "content/public/common/url_constants.h" 47 #include "content/public/common/url_constants.h"
48 #include "net/base/net_util.h" 48 #include "net/base/net_util.h"
49 #include "net/url_request/url_request_context_getter.h" 49 #include "net/url_request/url_request_context_getter.h"
50 #include "third_party/skia/include/core/SkBitmap.h" 50 #include "third_party/skia/include/core/SkBitmap.h"
51 #include "ui/gfx/native_widget_types.h" 51 #include "ui/gfx/native_widget_types.h"
52 #include "webkit/glue/context_menu.h" 52 #include "webkit/glue/context_menu.h"
53 #include "webkit/glue/webaccessibility.h" 53 #include "webkit/glue/webaccessibility.h"
54 #include "webkit/glue/webdropdata.h" 54 #include "webkit/glue/webdropdata.h"
55 55
56 using base::TimeDelta; 56 using base::TimeDelta;
57 using content::BrowserMessageFilter;
57 using content::BrowserThread; 58 using content::BrowserThread;
58 using content::UserMetricsAction; 59 using content::UserMetricsAction;
59 using WebKit::WebConsoleMessage; 60 using WebKit::WebConsoleMessage;
60 using WebKit::WebDragOperation; 61 using WebKit::WebDragOperation;
61 using WebKit::WebDragOperationNone; 62 using WebKit::WebDragOperationNone;
62 using WebKit::WebDragOperationsMask; 63 using WebKit::WebDragOperationsMask;
63 using WebKit::WebInputEvent; 64 using WebKit::WebInputEvent;
64 using WebKit::WebMediaPlayerAction; 65 using WebKit::WebMediaPlayerAction;
65 66
66 namespace { 67 namespace {
(...skipping 1456 matching lines...) Expand 10 before | Expand all | Expand 10 after
1523 1524
1524 void RenderViewHost::OnWebUISend(const GURL& source_url, 1525 void RenderViewHost::OnWebUISend(const GURL& source_url,
1525 const std::string& name, 1526 const std::string& name,
1526 const base::ListValue& args) { 1527 const base::ListValue& args) {
1527 delegate_->WebUISend(this, source_url, name, args); 1528 delegate_->WebUISend(this, source_url, name, args);
1528 } 1529 }
1529 1530
1530 void RenderViewHost::ClearPowerSaveBlockers() { 1531 void RenderViewHost::ClearPowerSaveBlockers() {
1531 STLDeleteValues(&power_save_blockers_); 1532 STLDeleteValues(&power_save_blockers_);
1532 } 1533 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698