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

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

Issue 2391743005: Make the flash permission prompt work properly on file: URLs (Closed)
Patch Set: test prompt 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; 11 class GURL;
12 class PermissionRequestID; 12 class PermissionRequestID;
13 13
14 class FlashPermissionContext : public PermissionContextBase { 14 class FlashPermissionContext : public PermissionContextBase {
15 public: 15 public:
16 explicit FlashPermissionContext(Profile* profile); 16 explicit FlashPermissionContext(Profile* profile);
17 ~FlashPermissionContext() override; 17 ~FlashPermissionContext() override;
18 18
19 private: 19 private:
20 // PermissionContextBase: 20 // PermissionContextBase:
21 ContentSetting GetPermissionStatus( 21 ContentSetting GetPermissionStatus(
22 const GURL& requesting_origin, 22 const GURL& requesting_origin,
23 const GURL& embedding_origin) const override; 23 const GURL& embedding_origin) const override;
24 void UpdateTabContext(const PermissionRequestID& id, 24 void UpdateTabContext(const PermissionRequestID& id,
25 const GURL& requesting_origin, 25 const GURL& requesting_origin,
26 bool allowed) override; 26 bool allowed) override;
27 void UpdateContentSetting(const GURL& requesting_origin,
28 const GURL& embedding_origin,
29 ContentSetting content_setting) override;
27 bool IsRestrictedToSecureOrigins() const override; 30 bool IsRestrictedToSecureOrigins() const override;
28 31
29 DISALLOW_COPY_AND_ASSIGN(FlashPermissionContext); 32 DISALLOW_COPY_AND_ASSIGN(FlashPermissionContext);
30 }; 33 };
31 34
32 #endif // CHROME_BROWSER_PLUGINS_FLASH_PERMISSION_CONTEXT_H_ 35 #endif // CHROME_BROWSER_PLUGINS_FLASH_PERMISSION_CONTEXT_H_
OLDNEW
« no previous file with comments | « chrome/browser/plugins/flash_permission_browsertest.cc ('k') | chrome/browser/plugins/flash_permission_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698