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

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

Issue 1159143002: Add a basic functionality to the force-saving menu item. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added stub methods. Created 5 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/renderer_context_menu/render_view_context_menu.h" 5 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 15 matching lines...) Expand all
26 #include "chrome/browser/chrome_notification_types.h" 26 #include "chrome/browser/chrome_notification_types.h"
27 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" 27 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h"
28 #include "chrome/browser/devtools/devtools_window.h" 28 #include "chrome/browser/devtools/devtools_window.h"
29 #include "chrome/browser/download/download_service.h" 29 #include "chrome/browser/download/download_service.h"
30 #include "chrome/browser/download/download_service_factory.h" 30 #include "chrome/browser/download/download_service_factory.h"
31 #include "chrome/browser/download/download_stats.h" 31 #include "chrome/browser/download/download_stats.h"
32 #include "chrome/browser/extensions/devtools_util.h" 32 #include "chrome/browser/extensions/devtools_util.h"
33 #include "chrome/browser/extensions/extension_service.h" 33 #include "chrome/browser/extensions/extension_service.h"
34 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" 34 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h"
35 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact ory.h" 35 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact ory.h"
36 #include "chrome/browser/password_manager/chrome_password_manager_client.h"
36 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" 37 #include "chrome/browser/plugins/chrome_plugin_service_filter.h"
37 #include "chrome/browser/prefs/incognito_mode_prefs.h" 38 #include "chrome/browser/prefs/incognito_mode_prefs.h"
38 #include "chrome/browser/profiles/profile.h" 39 #include "chrome/browser/profiles/profile.h"
39 #include "chrome/browser/profiles/profile_io_data.h" 40 #include "chrome/browser/profiles/profile_io_data.h"
40 #include "chrome/browser/renderer_context_menu/context_menu_content_type_factory .h" 41 #include "chrome/browser/renderer_context_menu/context_menu_content_type_factory .h"
41 #include "chrome/browser/renderer_context_menu/spellchecker_submenu_observer.h" 42 #include "chrome/browser/renderer_context_menu/spellchecker_submenu_observer.h"
42 #include "chrome/browser/renderer_context_menu/spelling_menu_observer.h" 43 #include "chrome/browser/renderer_context_menu/spelling_menu_observer.h"
43 #include "chrome/browser/search/search.h" 44 #include "chrome/browser/search/search.h"
44 #include "chrome/browser/search_engines/template_url_service_factory.h" 45 #include "chrome/browser/search_engines/template_url_service_factory.h"
45 #include "chrome/browser/spellchecker/spellcheck_host_metrics.h" 46 #include "chrome/browser/spellchecker/spellcheck_host_metrics.h"
(...skipping 1747 matching lines...) Expand 10 before | Expand all | Expand 10 after
1793 data.favicon_url = 1794 data.favicon_url =
1794 TemplateURL::GenerateFaviconURL(params_.page_url.GetOrigin()); 1795 TemplateURL::GenerateFaviconURL(params_.page_url.GetOrigin());
1795 // Takes ownership of the TemplateURL. 1796 // Takes ownership of the TemplateURL.
1796 search_engine_tab_helper->delegate()->ConfirmAddSearchProvider( 1797 search_engine_tab_helper->delegate()->ConfirmAddSearchProvider(
1797 new TemplateURL(data), GetProfile()); 1798 new TemplateURL(data), GetProfile());
1798 } 1799 }
1799 break; 1800 break;
1800 } 1801 }
1801 1802
1802 case IDC_CONTENT_CONTEXT_FORCESAVEPASSWORD: 1803 case IDC_CONTENT_CONTEXT_FORCESAVEPASSWORD:
1803 // TODO(msramek): Force-save the password. 1804 ChromePasswordManagerClient::FromWebContents(source_web_contents_)->
1805 ForceSavePassword();
1804 break; 1806 break;
1805 1807
1806 default: 1808 default:
1807 NOTREACHED(); 1809 NOTREACHED();
1808 break; 1810 break;
1809 } 1811 }
1810 } 1812 }
1811 1813
1812 ProtocolHandlerRegistry::ProtocolHandlerList 1814 ProtocolHandlerRegistry::ProtocolHandlerList
1813 RenderViewContextMenu::GetHandlersForLinkUrl() { 1815 RenderViewContextMenu::GetHandlersForLinkUrl() {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
1908 source_web_contents_->GetRenderViewHost()-> 1910 source_web_contents_->GetRenderViewHost()->
1909 ExecuteMediaPlayerActionAtLocation(location, action); 1911 ExecuteMediaPlayerActionAtLocation(location, action);
1910 } 1912 }
1911 1913
1912 void RenderViewContextMenu::PluginActionAt( 1914 void RenderViewContextMenu::PluginActionAt(
1913 const gfx::Point& location, 1915 const gfx::Point& location,
1914 const WebPluginAction& action) { 1916 const WebPluginAction& action) {
1915 source_web_contents_->GetRenderViewHost()-> 1917 source_web_contents_->GetRenderViewHost()->
1916 ExecutePluginActionAtLocation(location, action); 1918 ExecutePluginActionAtLocation(location, action);
1917 } 1919 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698