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

Side by Side Diff: chrome/browser/plugins/flash_permission_context.h

Issue 2354443002: Implement PluginsPermissionContext and hookup to flash download interception. (Closed)
Patch Set: Implement PluginsPermissionContext and hookup to flash download interception. Created 4 years, 2 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_PLUGINS_FLASH_PERMISSION_CONTEXT_H_ 5 #ifndef CHROME_BROWSER_PLUGINS_FLASH_PERMISSION_CONTEXT_H_
6 #define CHROME_BROWSER_PLUGINS_FLASH_PERMISSION_CONTEXT_H_ 6 #define CHROME_BROWSER_PLUGINS_FLASH_PERMISSION_CONTEXT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/permissions/permission_context_base.h" 9 #include "chrome/browser/permissions/permission_context_base.h"
10 10
11 class GURL;
12 class PermissionRequestID;
13
11 class FlashPermissionContext : public PermissionContextBase { 14 class FlashPermissionContext : public PermissionContextBase {
12 public: 15 public:
13 explicit FlashPermissionContext(Profile* profile); 16 explicit FlashPermissionContext(Profile* profile);
14 ~FlashPermissionContext() override; 17 ~FlashPermissionContext() override;
15 18
16 private: 19 private:
17 // PermissionContextBase: 20 // PermissionContextBase:
21 ContentSetting GetPermissionStatus(
22 const GURL& requesting_origin,
23 const GURL& embedding_origin) const override;
24 void UpdateTabContext(const PermissionRequestID& id,
25 const GURL& requesting_origin,
26 bool allowed) override;
18 bool IsRestrictedToSecureOrigins() const override; 27 bool IsRestrictedToSecureOrigins() const override;
19 28
20 DISALLOW_COPY_AND_ASSIGN(FlashPermissionContext); 29 DISALLOW_COPY_AND_ASSIGN(FlashPermissionContext);
21 }; 30 };
22 31
23 #endif // CHROME_BROWSER_PLUGINS_FLASH_PERMISSION_CONTEXT_H_ 32 #endif // CHROME_BROWSER_PLUGINS_FLASH_PERMISSION_CONTEXT_H_
OLDNEW
« no previous file with comments | « chrome/browser/plugins/flash_download_interception.cc ('k') | chrome/browser/plugins/flash_permission_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698