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

Side by Side Diff: chromecast/browser/cast_permission_manager.cc

Issue 990303002: Implement PermissionService::GetNextPermissionChange. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission_impl
Patch Set: fix chromecast/ Created 5 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "chromecast/browser/cast_permission_manager.h" 5 #include "chromecast/browser/cast_permission_manager.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "content/public/browser/permission_type.h" 9 #include "content/public/browser/permission_type.h"
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 LOG(INFO) << __FUNCTION__ << ": " << static_cast<int>(permission); 49 LOG(INFO) << __FUNCTION__ << ": " << static_cast<int>(permission);
50 return content::PermissionStatus::PERMISSION_STATUS_GRANTED; 50 return content::PermissionStatus::PERMISSION_STATUS_GRANTED;
51 } 51 }
52 52
53 void CastPermissionManager::RegisterPermissionUsage( 53 void CastPermissionManager::RegisterPermissionUsage(
54 content::PermissionType permission, 54 content::PermissionType permission,
55 const GURL& requesting_origin, 55 const GURL& requesting_origin,
56 const GURL& embedding_origin) { 56 const GURL& embedding_origin) {
57 } 57 }
58 58
59 int CastPermissionManager::SubscribePermissionStatusChange(
60 content::PermissionType permission,
61 const GURL& requesting_origin,
62 const GURL& embedding_origin,
63 const base::Callback<void(content::PermissionStatus)>& callback) {
64 return -1;
65 }
66
67 void CastPermissionManager::UnsubscribePermissionStatusChange(
68 int subscription_id) {
69 }
70
59 } // namespace shell 71 } // namespace shell
60 } // namespace chromecast 72 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/cast_permission_manager.h ('k') | content/browser/permissions/permission_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698