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

Side by Side Diff: chrome/browser/content_settings/tab_specific_content_settings.h

Issue 319553008: Updated Plugin bubble model to add "learn more" link and to appear with a sliding yellow thing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed comments Created 6 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 (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 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_
6 #define CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ 6 #define CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 // Set whether the setting for the pending handler is DEFAULT (ignore), 251 // Set whether the setting for the pending handler is DEFAULT (ignore),
252 // ALLOW, or DENY. 252 // ALLOW, or DENY.
253 void set_pending_protocol_handler_setting(ContentSetting setting) { 253 void set_pending_protocol_handler_setting(ContentSetting setting) {
254 pending_protocol_handler_setting_ = setting; 254 pending_protocol_handler_setting_ = setting;
255 } 255 }
256 256
257 ContentSetting pending_protocol_handler_setting() const { 257 ContentSetting pending_protocol_handler_setting() const {
258 return pending_protocol_handler_setting_; 258 return pending_protocol_handler_setting_;
259 } 259 }
260 260
261 // Set whether the setting for the plugin bubble mode is Allow, Block or Run
Bernhard Bauer 2014/06/16 09:43:15 Nit: "Model", not "mode". Also, can we please not
radhikabhar 2014/06/16 18:21:37 Changed it and to remember the user selection for
262 // this time.
263 void set_plugin_bubble_setting(ContentSetting setting) {
264 plugin_bubble_setting_ = setting;
265 }
266
267 ContentSetting plugin_bubble_setting() const {
268 return plugin_bubble_setting_;
269 }
261 270
262 // Returns a pointer to the |LocalSharedObjectsContainer| that contains all 271 // Returns a pointer to the |LocalSharedObjectsContainer| that contains all
263 // allowed local shared objects like cookies, local storage, ... . 272 // allowed local shared objects like cookies, local storage, ... .
264 const LocalSharedObjectsContainer& allowed_local_shared_objects() const { 273 const LocalSharedObjectsContainer& allowed_local_shared_objects() const {
265 return allowed_local_shared_objects_; 274 return allowed_local_shared_objects_;
266 } 275 }
267 276
268 // Returns a pointer to the |LocalSharedObjectsContainer| that contains all 277 // Returns a pointer to the |LocalSharedObjectsContainer| that contains all
269 // blocked local shared objects like cookies, local storage, ... . 278 // blocked local shared objects like cookies, local storage, ... .
270 const LocalSharedObjectsContainer& blocked_local_shared_objects() const { 279 const LocalSharedObjectsContainer& blocked_local_shared_objects() const {
271 return blocked_local_shared_objects_; 280 return blocked_local_shared_objects_;
272 } 281 }
273 282
274 bool load_plugins_link_enabled() { return load_plugins_link_enabled_; }
275 void set_load_plugins_link_enabled(bool enabled) {
276 load_plugins_link_enabled_ = enabled;
277 }
278
279 // Called to indicate whether access to the Pepper broker was allowed or 283 // Called to indicate whether access to the Pepper broker was allowed or
280 // blocked. 284 // blocked.
281 void SetPepperBrokerAllowed(bool allowed); 285 void SetPepperBrokerAllowed(bool allowed);
282 286
283 // content::WebContentsObserver overrides. 287 // content::WebContentsObserver overrides.
284 virtual void RenderFrameForInterstitialPageCreated( 288 virtual void RenderFrameForInterstitialPageCreated(
285 content::RenderFrameHost* render_frame_host) OVERRIDE; 289 content::RenderFrameHost* render_frame_host) OVERRIDE;
286 virtual bool OnMessageReceived( 290 virtual bool OnMessageReceived(
287 const IPC::Message& message, 291 const IPC::Message& message,
288 content::RenderFrameHost* render_frame_host) OVERRIDE; 292 content::RenderFrameHost* render_frame_host) OVERRIDE;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 402
399 // The previous protocol handler to be replaced by 403 // The previous protocol handler to be replaced by
400 // the pending_protocol_handler_, if there is one. Empty if 404 // the pending_protocol_handler_, if there is one. Empty if
401 // there is no handler which would be replaced. 405 // there is no handler which would be replaced.
402 ProtocolHandler previous_protocol_handler_; 406 ProtocolHandler previous_protocol_handler_;
403 407
404 // The setting on the pending protocol handler registration. Persisted in case 408 // The setting on the pending protocol handler registration. Persisted in case
405 // the user opens the bubble and makes changes multiple times. 409 // the user opens the bubble and makes changes multiple times.
406 ContentSetting pending_protocol_handler_setting_; 410 ContentSetting pending_protocol_handler_setting_;
407 411
408 // Stores whether the user can load blocked plugins on this page. 412 // The setting on the plugin bubble model. Persisted in case
409 bool load_plugins_link_enabled_; 413 // the user opens the bubble and makes changes multiple times.
414 ContentSetting plugin_bubble_setting_;
410 415
411 content::NotificationRegistrar registrar_; 416 content::NotificationRegistrar registrar_;
412 417
413 // The origin of the media stream request. Note that we only support handling 418 // The origin of the media stream request. Note that we only support handling
414 // settings for one request per tab. The latest request's origin will be 419 // settings for one request per tab. The latest request's origin will be
415 // stored here. http://crbug.com/259794 420 // stored here. http://crbug.com/259794
416 GURL media_stream_access_origin_; 421 GURL media_stream_access_origin_;
417 422
418 // The devices to be displayed in the media bubble when the media stream 423 // The devices to be displayed in the media bubble when the media stream
419 // request is requesting certain specific devices. 424 // request is requesting certain specific devices.
420 std::string media_stream_requested_audio_device_; 425 std::string media_stream_requested_audio_device_;
421 std::string media_stream_requested_video_device_; 426 std::string media_stream_requested_video_device_;
422 427
423 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); 428 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings);
424 }; 429 };
425 430
426 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ 431 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698