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

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

Issue 107413006: Dismiss EME infobar when WebMediaPlayer is destroyed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Version2: added group_id to PermissionRequestID class Created 6 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PERMISSION_REQUEST_ID_H_ 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_REQUEST_ID_H_
6 #define CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_REQUEST_ID_H_ 6 #define CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_REQUEST_ID_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 // Uniquely identifies a particular permission request. 10 // Uniquely identifies a particular permission request.
11 class PermissionRequestID { 11 class PermissionRequestID {
12 public: 12 public:
13 PermissionRequestID(int render_process_id, int render_view_id, int bridge_id); 13 PermissionRequestID(int render_process_id,
14 int render_view_id,
15 int bridge_id,
16 int group_id);
14 ~PermissionRequestID(); 17 ~PermissionRequestID();
15 18
16 int render_process_id() const { return render_process_id_; } 19 int render_process_id() const { return render_process_id_; }
17 int render_view_id() const { return render_view_id_; } 20 int render_view_id() const { return render_view_id_; }
18 int bridge_id() const { return bridge_id_; } 21 int bridge_id() const { return bridge_id_; }
22 int group_id() const { return group_id_; }
19 23
20 bool Equals(const PermissionRequestID& other) const; 24 bool Equals(const PermissionRequestID& other) const;
21 bool IsForSameTabAs(const PermissionRequestID& other) const; 25 bool IsForSameTabAs(const PermissionRequestID& other) const;
22 std::string ToString() const; 26 std::string ToString() const;
23 27
24 private: 28 private:
25 int render_process_id_; 29 int render_process_id_;
26 int render_view_id_; 30 int render_view_id_;
27 int bridge_id_; 31 int bridge_id_;
32 int group_id_;
xhwang 2013/12/30 19:00:59 You might want to add comments about what a bridge
Kibeom Kim (inactive) 2013/12/30 21:52:24 Done.
28 33
29 // Purposefully do not disable copying, as this is stored in STL containers. 34 // Purposefully do not disable copying, as this is stored in STL containers.
30 }; 35 };
31 36
32 #endif // CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_REQUEST_ID_H_ 37 #endif // CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_REQUEST_ID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698