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

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

Issue 9360014: Create a content public browser API around the ChildProcessSecurityPolicy class. The implementati... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 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 | Annotate | Revision Log
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 <algorithm> 5 #include <algorithm>
6 #include <set> 6 #include <set>
7 #include <utility> 7 #include <utility>
8 8
9 #include "chrome/browser/tab_contents/render_view_context_menu.h" 9 #include "chrome/browser/tab_contents/render_view_context_menu.h"
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h" 53 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h"
54 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 54 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
55 #include "chrome/common/chrome_constants.h" 55 #include "chrome/common/chrome_constants.h"
56 #include "chrome/common/chrome_notification_types.h" 56 #include "chrome/common/chrome_notification_types.h"
57 #include "chrome/common/chrome_switches.h" 57 #include "chrome/common/chrome_switches.h"
58 #include "chrome/common/extensions/extension.h" 58 #include "chrome/common/extensions/extension.h"
59 #include "chrome/common/pref_names.h" 59 #include "chrome/common/pref_names.h"
60 #include "chrome/common/print_messages.h" 60 #include "chrome/common/print_messages.h"
61 #include "chrome/common/spellcheck_messages.h" 61 #include "chrome/common/spellcheck_messages.h"
62 #include "chrome/common/url_constants.h" 62 #include "chrome/common/url_constants.h"
63 #include "content/browser/child_process_security_policy.h"
64 #include "content/browser/download/download_types.h" 63 #include "content/browser/download/download_types.h"
65 #include "content/browser/renderer_host/render_view_host.h" 64 #include "content/browser/renderer_host/render_view_host.h"
66 #include "content/browser/renderer_host/render_widget_host_view.h" 65 #include "content/browser/renderer_host/render_widget_host_view.h"
67 #include "content/browser/speech/speech_input_preferences.h" 66 #include "content/browser/speech/speech_input_preferences.h"
68 #include "content/browser/ssl/ssl_manager.h" 67 #include "content/browser/ssl/ssl_manager.h"
68 #include "content/public/browser/child_process_security_policy.h"
69 #include "content/public/browser/download_manager.h" 69 #include "content/public/browser/download_manager.h"
70 #include "content/public/browser/navigation_details.h" 70 #include "content/public/browser/navigation_details.h"
71 #include "content/public/browser/navigation_entry.h" 71 #include "content/public/browser/navigation_entry.h"
72 #include "content/public/browser/notification_service.h" 72 #include "content/public/browser/notification_service.h"
73 #include "content/public/browser/ssl_status.h" 73 #include "content/public/browser/ssl_status.h"
74 #include "content/public/browser/user_metrics.h" 74 #include "content/public/browser/user_metrics.h"
75 #include "content/public/browser/web_contents.h" 75 #include "content/public/browser/web_contents.h"
76 #include "content/public/common/content_restriction.h" 76 #include "content/public/common/content_restriction.h"
77 #include "grit/generated_resources.h" 77 #include "grit/generated_resources.h"
78 #include "net/base/escape.h" 78 #include "net/base/escape.h"
79 #include "net/base/net_util.h" 79 #include "net/base/net_util.h"
80 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h" 80 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h"
81 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction. h" 81 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction. h"
82 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginAction.h" 82 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginAction.h"
83 #include "ui/base/l10n/l10n_util.h" 83 #include "ui/base/l10n/l10n_util.h"
84 #include "ui/base/text/text_elider.h" 84 #include "ui/base/text/text_elider.h"
85 #include "ui/gfx/favicon_size.h" 85 #include "ui/gfx/favicon_size.h"
86 #include "webkit/glue/webmenuitem.h" 86 #include "webkit/glue/webmenuitem.h"
87 87
88 #ifdef FILE_MANAGER_EXTENSION 88 #ifdef FILE_MANAGER_EXTENSION
89 #include "chrome/browser/extensions/file_manager_util.h" 89 #include "chrome/browser/extensions/file_manager_util.h"
90 #endif 90 #endif
91 91
92 using content::ChildProcessSecurityPolicy;
92 using content::DownloadManager; 93 using content::DownloadManager;
93 using content::NavigationEntry; 94 using content::NavigationEntry;
94 using content::OpenURLParams; 95 using content::OpenURLParams;
95 using content::SSLStatus; 96 using content::SSLStatus;
96 using content::UserMetricsAction; 97 using content::UserMetricsAction;
97 using content::WebContents; 98 using content::WebContents;
98 using WebKit::WebContextMenuData; 99 using WebKit::WebContextMenuData;
99 using WebKit::WebMediaPlayerAction; 100 using WebKit::WebMediaPlayerAction;
100 using WebKit::WebPluginAction; 101 using WebKit::WebPluginAction;
101 using WebKit::WebURL; 102 using WebKit::WebURL;
(...skipping 1867 matching lines...) Expand 10 before | Expand all | Expand 10 after
1969 source_web_contents_->GetRenderViewHost()-> 1970 source_web_contents_->GetRenderViewHost()->
1970 ExecuteMediaPlayerActionAtLocation(location, action); 1971 ExecuteMediaPlayerActionAtLocation(location, action);
1971 } 1972 }
1972 1973
1973 void RenderViewContextMenu::PluginActionAt( 1974 void RenderViewContextMenu::PluginActionAt(
1974 const gfx::Point& location, 1975 const gfx::Point& location,
1975 const WebPluginAction& action) { 1976 const WebPluginAction& action) {
1976 source_web_contents_->GetRenderViewHost()-> 1977 source_web_contents_->GetRenderViewHost()->
1977 ExecutePluginActionAtLocation(location, action); 1978 ExecutePluginActionAtLocation(location, action);
1978 } 1979 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/chrome_render_view_host_observer.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698