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

Side by Side Diff: chrome/common/chrome_content_client.h

Issue 653773004: Standardize usage of virtual/override/final in chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 (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_COMMON_CHROME_CONTENT_CLIENT_H_ 5 #ifndef CHROME_COMMON_CHROME_CONTENT_CLIENT_H_
6 #define CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ 6 #define CHROME_COMMON_CHROME_CONTENT_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "content/public/common/content_client.h" 13 #include "content/public/common/content_client.h"
14 14
15 // Returns the user agent of Chrome. 15 // Returns the user agent of Chrome.
16 std::string GetUserAgent(); 16 std::string GetUserAgent();
17 17
18 class ChromeContentClient : public content::ContentClient { 18 class ChromeContentClient : public content::ContentClient {
19 public: 19 public:
20 static const char* const kPDFPluginName; 20 static const char* const kPDFPluginName;
21 static const char* const kRemotingViewerPluginPath; 21 static const char* const kRemotingViewerPluginPath;
22 22
23 virtual void SetActiveURL(const GURL& url) override; 23 void SetActiveURL(const GURL& url) override;
24 virtual void SetGpuInfo(const gpu::GPUInfo& gpu_info) override; 24 void SetGpuInfo(const gpu::GPUInfo& gpu_info) override;
25 virtual void AddPepperPlugins( 25 void AddPepperPlugins(
26 std::vector<content::PepperPluginInfo>* plugins) override; 26 std::vector<content::PepperPluginInfo>* plugins) override;
27 virtual void AddAdditionalSchemes( 27 void AddAdditionalSchemes(std::vector<std::string>* standard_schemes,
28 std::vector<std::string>* standard_schemes, 28 std::vector<std::string>* saveable_shemes) override;
29 std::vector<std::string>* saveable_shemes) override; 29 std::string GetProduct() const override;
30 virtual std::string GetProduct() const override; 30 std::string GetUserAgent() const override;
31 virtual std::string GetUserAgent() const override; 31 base::string16 GetLocalizedString(int message_id) const override;
32 virtual base::string16 GetLocalizedString(int message_id) const override; 32 base::StringPiece GetDataResource(
33 virtual base::StringPiece GetDataResource(
34 int resource_id, 33 int resource_id,
35 ui::ScaleFactor scale_factor) const override; 34 ui::ScaleFactor scale_factor) const override;
36 virtual base::RefCountedStaticMemory* GetDataResourceBytes( 35 base::RefCountedStaticMemory* GetDataResourceBytes(
37 int resource_id) const override; 36 int resource_id) const override;
38 virtual gfx::Image& GetNativeImageNamed(int resource_id) const override; 37 gfx::Image& GetNativeImageNamed(int resource_id) const override;
39 virtual std::string GetProcessTypeNameInEnglish(int type) override; 38 std::string GetProcessTypeNameInEnglish(int type) override;
40 39
41 #if defined(OS_MACOSX) && !defined(OS_IOS) 40 #if defined(OS_MACOSX) && !defined(OS_IOS)
42 virtual bool GetSandboxProfileForSandboxType( 41 bool GetSandboxProfileForSandboxType(
43 int sandbox_type, 42 int sandbox_type,
44 int* sandbox_profile_resource_id) const override; 43 int* sandbox_profile_resource_id) const override;
45 #endif 44 #endif
46 }; 45 };
47 46
48 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ 47 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/app_shim/chrome_main_app_mode_mac.mm ('k') | chrome/common/extensions/api/commands/commands_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698