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

Side by Side Diff: chrome/browser/geolocation/geolocation_permission_context_extensions.h

Issue 2479593006: Move enable extensions define to a build flag. (Closed)
Patch Set: Merge Created 4 years, 1 month 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_EXTENSIONS_H_ 5 #ifndef CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_EXTENSIONS_H_
6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_EXTENSIONS_H_ 6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_EXTENSIONS_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "components/content_settings/core/common/content_settings.h" 10 #include "components/content_settings/core/common/content_settings.h"
11 #include "extensions/features/features.h"
11 12
12 namespace content { 13 namespace content {
13 class WebContents; 14 class WebContents;
14 } 15 }
15 16
16 class GURL; 17 class GURL;
17 class PermissionRequestID; 18 class PermissionRequestID;
18 class Profile; 19 class Profile;
19 20
20 // Chrome extensions specific portions of GeolocationPermissionContext. 21 // Chrome extensions specific portions of GeolocationPermissionContext.
(...skipping 12 matching lines...) Expand all
33 bool user_gesture, 34 bool user_gesture,
34 const base::Callback<void(ContentSetting)>& callback, 35 const base::Callback<void(ContentSetting)>& callback,
35 bool* permission_set, 36 bool* permission_set,
36 bool* new_permission); 37 bool* new_permission);
37 38
38 // Returns true if the cancellation request was handled. 39 // Returns true if the cancellation request was handled.
39 bool CancelPermissionRequest(content::WebContents* web_contents, 40 bool CancelPermissionRequest(content::WebContents* web_contents,
40 int bridge_id); 41 int bridge_id);
41 42
42 private: 43 private:
43 #if defined(ENABLE_EXTENSIONS) 44 #if BUILDFLAG(ENABLE_EXTENSIONS)
44 Profile* profile_; 45 Profile* profile_;
45 #endif 46 #endif
46 47
47 DISALLOW_COPY_AND_ASSIGN(GeolocationPermissionContextExtensions); 48 DISALLOW_COPY_AND_ASSIGN(GeolocationPermissionContextExtensions);
48 }; 49 };
49 50
50 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_EXTENSIONS_ H_ 51 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_EXTENSIONS_ H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_service.h ('k') | chrome/browser/geolocation/geolocation_permission_context_extensions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698