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

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

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.cc
diff --git a/chrome/browser/content_settings/permission_request_id.cc b/chrome/browser/content_settings/permission_request_id.cc
deleted file mode 100644
index cc6676197124b158fc655dc93d74aadfb85f3955..0000000000000000000000000000000000000000
--- a/chrome/browser/content_settings/permission_request_id.cc
+++ /dev/null
@@ -1,40 +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.
-
-#include "chrome/browser/content_settings/permission_request_id.h"
-
-#include "base/strings/stringprintf.h"
-
-
-PermissionRequestID::PermissionRequestID(int render_process_id,
- int render_view_id,
- int bridge_id,
- const GURL& origin)
- : render_process_id_(render_process_id),
- render_view_id_(render_view_id),
- bridge_id_(bridge_id),
- origin_(origin) {
-}
-
-PermissionRequestID::~PermissionRequestID() {
-}
-
-bool PermissionRequestID::Equals(const PermissionRequestID& other) const {
- return IsForSameTabAs(other) && (bridge_id_ == other.bridge_id_) &&
- (origin_ == other.origin());
-}
-
-bool PermissionRequestID::IsForSameTabAs(
- const PermissionRequestID& other) const {
- return (render_process_id_ == other.render_process_id_) &&
- (render_view_id_ == other.render_view_id_);
-}
-
-std::string PermissionRequestID::ToString() const {
- return base::StringPrintf("%d,%d,%d,%s",
- render_process_id_,
- render_view_id_,
- bridge_id_,
- origin_.spec().c_str());
-}
« no previous file with comments | « chrome/browser/content_settings/permission_request_id.h ('k') | chrome/browser/geolocation/geolocation_infobar_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698