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

Unified Diff: blimp/engine/app/blimp_permission_manager.cc

Issue 2629743003: Remove all blimp engine code (Closed)
Patch Set: Use consistent comment style in //chrome Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/engine/app/blimp_permission_manager.h ('k') | blimp/engine/app/blimp_stability_metrics_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/app/blimp_permission_manager.cc
diff --git a/blimp/engine/app/blimp_permission_manager.cc b/blimp/engine/app/blimp_permission_manager.cc
deleted file mode 100644
index e41f957bcf9c4c2a551070bdd0b276b5082cff07..0000000000000000000000000000000000000000
--- a/blimp/engine/app/blimp_permission_manager.cc
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright 2015 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 "blimp/engine/app/blimp_permission_manager.h"
-
-#include <vector>
-
-#include "base/callback.h"
-#include "content/public/browser/permission_type.h"
-
-namespace blimp {
-namespace engine {
-
-BlimpPermissionManager::BlimpPermissionManager()
- : content::PermissionManager() {}
-
-BlimpPermissionManager::~BlimpPermissionManager() {}
-
-int BlimpPermissionManager::RequestPermission(
- content::PermissionType permission,
- content::RenderFrameHost* render_frame_host,
- const GURL& origin,
- bool user_gesture,
- const base::Callback<void(blink::mojom::PermissionStatus)>& callback) {
- if (permission == content::PermissionType::GEOLOCATION) {
- VLOG(1) << "Geolocation permission granted.";
- callback.Run(blink::mojom::PermissionStatus::GRANTED);
- } else {
- VLOG(1) << "Permission denied.";
- callback.Run(blink::mojom::PermissionStatus::DENIED);
- }
- return kNoPendingOperation;
-}
-
-int BlimpPermissionManager::RequestPermissions(
- const std::vector<content::PermissionType>& permission,
- content::RenderFrameHost* render_frame_host,
- const GURL& requesting_origin,
- bool user_gesture,
- const base::Callback<
- void(const std::vector<blink::mojom::PermissionStatus>&)>& callback) {
- callback.Run(std::vector<blink::mojom::PermissionStatus>(
- permission.size(), blink::mojom::PermissionStatus::DENIED));
- return kNoPendingOperation;
-}
-
-void BlimpPermissionManager::CancelPermissionRequest(int request_id) {}
-
-void BlimpPermissionManager::ResetPermission(content::PermissionType permission,
- const GURL& requesting_origin,
- const GURL& embedding_origin) {}
-
-blink::mojom::PermissionStatus BlimpPermissionManager::GetPermissionStatus(
- content::PermissionType permission,
- const GURL& requesting_origin,
- const GURL& embedding_origin) {
- return blink::mojom::PermissionStatus::DENIED;
-}
-
-void BlimpPermissionManager::RegisterPermissionUsage(
- content::PermissionType permission,
- const GURL& requesting_origin,
- const GURL& embedding_origin) {}
-
-int BlimpPermissionManager::SubscribePermissionStatusChange(
- content::PermissionType permission,
- const GURL& requesting_origin,
- const GURL& embedding_origin,
- const base::Callback<void(blink::mojom::PermissionStatus)>& callback) {
- return -1;
-}
-
-void BlimpPermissionManager::UnsubscribePermissionStatusChange(
- int subscription_id) {}
-
-} // namespace engine
-} // namespace blimp
« no previous file with comments | « blimp/engine/app/blimp_permission_manager.h ('k') | blimp/engine/app/blimp_stability_metrics_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698