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

Side by Side Diff: chrome/browser/notifications/notification_permission_context.h

Issue 1366123002: Cleanup: IWYU for base/gtest_prod_util.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gtest_iwyu
Patch Set: more lint Created 5 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 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 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PERMISSION_CONTEXT_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PERMISSION_CONTEXT_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PERMISSION_CONTEXT_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PERMISSION_CONTEXT_H_
7 7
8 #include "base/gtest_prod_util.h"
8 #include "chrome/browser/permissions/permission_context_base.h" 9 #include "chrome/browser/permissions/permission_context_base.h"
9 #include "components/content_settings/core/common/content_settings.h" 10 #include "components/content_settings/core/common/content_settings.h"
10 11
11 class GURL; 12 class GURL;
12 class Profile; 13 class Profile;
13 14
14 class NotificationPermissionContext : public PermissionContextBase { 15 class NotificationPermissionContext : public PermissionContextBase {
15 public: 16 public:
16 explicit NotificationPermissionContext(Profile* profile); 17 explicit NotificationPermissionContext(Profile* profile);
17 ~NotificationPermissionContext() override; 18 ~NotificationPermissionContext() override;
18 19
19 // PermissionContextBase implementation. 20 // PermissionContextBase implementation.
20 void ResetPermission(const GURL& requesting_origin, 21 void ResetPermission(const GURL& requesting_origin,
21 const GURL& embedder_origin) override; 22 const GURL& embedder_origin) override;
22 23
23 private: 24 private:
24 FRIEND_TEST_ALL_PREFIXES(NotificationPermissionContextTest, 25 FRIEND_TEST_ALL_PREFIXES(NotificationPermissionContextTest,
25 IgnoresEmbedderOrigin); 26 IgnoresEmbedderOrigin);
26 FRIEND_TEST_ALL_PREFIXES(NotificationPermissionContextTest, 27 FRIEND_TEST_ALL_PREFIXES(NotificationPermissionContextTest,
27 NoSecureOriginRequirement); 28 NoSecureOriginRequirement);
28 29
29 // PermissionContextBase implementation. 30 // PermissionContextBase implementation.
30 void UpdateContentSetting(const GURL& requesting_origin, 31 void UpdateContentSetting(const GURL& requesting_origin,
31 const GURL& embedder_origin, 32 const GURL& embedder_origin,
32 ContentSetting content_setting) override; 33 ContentSetting content_setting) override;
33 bool IsRestrictedToSecureOrigins() const override; 34 bool IsRestrictedToSecureOrigins() const override;
34 }; 35 };
35 36
36 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PERMISSION_CONTEXT_H_ 37 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PERMISSION_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698