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

Side by Side Diff: chrome/browser/chrome_content_browser_client.h

Issue 785723002: Add new extension APIs related to animation policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use prefs_tab_helper. Created 5 years, 10 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CHROME_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 23 matching lines...) Expand all
34 namespace prerender { 34 namespace prerender {
35 class PrerenderTracker; 35 class PrerenderTracker;
36 } 36 }
37 37
38 namespace user_prefs { 38 namespace user_prefs {
39 class PrefRegistrySyncable; 39 class PrefRegistrySyncable;
40 } 40 }
41 41
42 namespace chrome { 42 namespace chrome {
43 43
44 #if defined(ENABLE_EXTENSIONS)
45 extern const char kAnimationPolicyAllowed[];
46 extern const char kAnimationPolicyOnce[];
47 extern const char kAnimationPolicyNone[];
48 #endif
49
44 class ChromeContentBrowserClient : public content::ContentBrowserClient { 50 class ChromeContentBrowserClient : public content::ContentBrowserClient {
45 public: 51 public:
46 ChromeContentBrowserClient(); 52 ChromeContentBrowserClient();
47 ~ChromeContentBrowserClient() override; 53 ~ChromeContentBrowserClient() override;
48 54
49 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 55 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
50 56
51 // Notification that the application locale has changed. This allows us to 57 // Notification that the application locale has changed. This allows us to
52 // update our I/O thread cache of this value. 58 // update our I/O thread cache of this value.
53 static void SetApplicationLocale(const std::string& locale); 59 static void SetApplicationLocale(const std::string& locale);
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 std::vector<ChromeContentBrowserClientParts*> extra_parts_; 337 std::vector<ChromeContentBrowserClientParts*> extra_parts_;
332 338
333 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; 339 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_;
334 340
335 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 341 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
336 }; 342 };
337 343
338 } // namespace chrome 344 } // namespace chrome
339 345
340 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 346 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_content_browser_client.cc » ('j') | chrome/browser/chrome_content_browser_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698