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

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

Issue 1158813002: Use RenderFrameHost for ::RequestPermission() and ::CancelPermission(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fixes 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 (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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 void ContentSettingsDestroyed(); 76 void ContentSettingsDestroyed();
77 77
78 private: 78 private:
79 TabSpecificContentSettings* tab_specific_content_settings_; 79 TabSpecificContentSettings* tab_specific_content_settings_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(SiteDataObserver); 81 DISALLOW_COPY_AND_ASSIGN(SiteDataObserver);
82 }; 82 };
83 83
84 ~TabSpecificContentSettings() override; 84 ~TabSpecificContentSettings() override;
85 85
86 // Returns the object given a render view's id. 86 // Returns the object given a RenderFrameHost ids.
87 static TabSpecificContentSettings* Get(int render_process_id, 87 static TabSpecificContentSettings* GetForFrame(int render_process_id,
88 int render_view_id); 88 int render_frame_id);
89 89
90 // Static methods called on the UI threads. 90 // Static methods called on the UI threads.
91 // Called when cookies for the given URL were read either from within the 91 // Called when cookies for the given URL were read either from within the
92 // current page or while loading it. |blocked_by_policy| should be true, if 92 // current page or while loading it. |blocked_by_policy| should be true, if
93 // reading cookies was blocked due to the user's content settings. In that 93 // reading cookies was blocked due to the user's content settings. In that
94 // case, this function should invoke OnContentBlocked. 94 // case, this function should invoke OnContentBlocked.
95 static void CookiesRead(int render_process_id, 95 static void CookiesRead(int render_process_id,
96 int render_frame_id, 96 int render_frame_id,
97 const GURL& url, 97 const GURL& url,
98 const GURL& first_party_url, 98 const GURL& first_party_url,
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 std::string media_stream_requested_audio_device_; 460 std::string media_stream_requested_audio_device_;
461 std::string media_stream_requested_video_device_; 461 std::string media_stream_requested_video_device_;
462 462
463 // Observer to watch for content settings changed. 463 // Observer to watch for content settings changed.
464 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; 464 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_;
465 465
466 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); 466 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings);
467 }; 467 };
468 468
469 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ 469 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698