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

Side by Side Diff: chrome/utility/chrome_content_utility_client.h

Issue 638863002: Replace FINAL and OVERRIDE with their C++11 counterparts in chrome/utility (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
« no previous file with comments | « no previous file | chrome/utility/extensions/extensions_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ 5 #ifndef CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
6 #define CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ 6 #define CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/scoped_vector.h" 13 #include "base/memory/scoped_vector.h"
14 #include "content/public/utility/content_utility_client.h" 14 #include "content/public/utility/content_utility_client.h"
15 #include "ipc/ipc_platform_file.h" 15 #include "ipc/ipc_platform_file.h"
16 16
17 namespace base { 17 namespace base {
18 class FilePath; 18 class FilePath;
19 struct FileDescriptor; 19 struct FileDescriptor;
20 } 20 }
21 21
22 class UtilityMessageHandler; 22 class UtilityMessageHandler;
23 23
24 class ChromeContentUtilityClient : public content::ContentUtilityClient { 24 class ChromeContentUtilityClient : public content::ContentUtilityClient {
25 public: 25 public:
26 ChromeContentUtilityClient(); 26 ChromeContentUtilityClient();
27 virtual ~ChromeContentUtilityClient(); 27 virtual ~ChromeContentUtilityClient();
28 28
29 virtual void UtilityThreadStarted() OVERRIDE; 29 virtual void UtilityThreadStarted() override;
30 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 30 virtual bool OnMessageReceived(const IPC::Message& message) override;
31 31
32 static void PreSandboxStartup(); 32 static void PreSandboxStartup();
33 33
34 // Shared with extensions::ExtensionsHandler. 34 // Shared with extensions::ExtensionsHandler.
35 static SkBitmap DecodeImage(const std::vector<unsigned char>& encoded_data, 35 static SkBitmap DecodeImage(const std::vector<unsigned char>& encoded_data,
36 bool shrink_to_fit); 36 bool shrink_to_fit);
37 static void DecodeImageAndSend(const std::vector<unsigned char>& encoded_data, 37 static void DecodeImageAndSend(const std::vector<unsigned char>& encoded_data,
38 bool shrink_to_fit); 38 bool shrink_to_fit);
39 39
40 static void set_max_ipc_message_size_for_test(int64_t max_message_size) { 40 static void set_max_ipc_message_size_for_test(int64_t max_message_size) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 bool filter_messages_; 79 bool filter_messages_;
80 // A list of message_ids to filter. 80 // A list of message_ids to filter.
81 std::set<int> message_id_whitelist_; 81 std::set<int> message_id_whitelist_;
82 // Maximum IPC msg size (default to kMaximumMessageSize; override for testing) 82 // Maximum IPC msg size (default to kMaximumMessageSize; override for testing)
83 static int64_t max_ipc_message_size_; 83 static int64_t max_ipc_message_size_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); 85 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient);
86 }; 86 };
87 87
88 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ 88 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/utility/extensions/extensions_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698