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

Unified Diff: chrome/browser/content_settings/permission_request_id.h

Issue 591443002: Componentize permission_request_id.* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/content_settings/permission_request_id.h
diff --git a/chrome/browser/content_settings/permission_request_id.h b/chrome/browser/content_settings/permission_request_id.h
deleted file mode 100644
index a10ce07a0f4af647d1eb3603428abee643eadc5f..0000000000000000000000000000000000000000
--- a/chrome/browser/content_settings/permission_request_id.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_REQUEST_ID_H_
-#define CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_REQUEST_ID_H_
-
-#include <string>
-
-#include "url/gurl.h"
-
-// Uniquely identifies a particular permission request.
-class PermissionRequestID {
- public:
- PermissionRequestID(int render_process_id,
- int render_view_id,
- int bridge_id,
- const GURL& origin);
- ~PermissionRequestID();
-
- int render_process_id() const { return render_process_id_; }
- int render_view_id() const { return render_view_id_; }
- int bridge_id() const { return bridge_id_; }
- GURL origin() const { return origin_; }
-
- bool Equals(const PermissionRequestID& other) const;
- bool IsForSameTabAs(const PermissionRequestID& other) const;
- std::string ToString() const;
-
- private:
- int render_process_id_;
- int render_view_id_;
- // Id unique to this instance.
- int bridge_id_;
- // Needed for permission checks that are based on origin.
- // If you don't use origin to check permission request, pass an empty GURL.
- GURL origin_;
-
- // Purposefully do not disable copying, as this is stored in STL containers.
-};
-
-#endif // CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_REQUEST_ID_H_

Powered by Google App Engine
This is Rietveld 408576698