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

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

Issue 940813003: Use a utility process for the Mojo v8 proxy resolver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v8-pac-in-process-enable
Patch Set: Add browser test Created 5 years, 9 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_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>
(...skipping 10 matching lines...) Expand all
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 ~ChromeContentUtilityClient() override; 27 ~ChromeContentUtilityClient() override;
28 28
29 void UtilityThreadStarted() override; 29 void UtilityThreadStarted() override;
30 bool OnMessageReceived(const IPC::Message& message) override; 30 bool OnMessageReceived(const IPC::Message& message) override;
31 void RegisterMojoServices(content::ServiceRegistry* registry) override;
31 32
32 static void PreSandboxStartup(); 33 static void PreSandboxStartup();
33 34
34 // Shared with extensions::ExtensionsHandler. 35 // Shared with extensions::ExtensionsHandler.
35 static SkBitmap DecodeImage(const std::vector<unsigned char>& encoded_data, 36 static SkBitmap DecodeImage(const std::vector<unsigned char>& encoded_data,
36 bool shrink_to_fit); 37 bool shrink_to_fit);
37 static void DecodeImageAndSend(const std::vector<unsigned char>& encoded_data, 38 static void DecodeImageAndSend(const std::vector<unsigned char>& encoded_data,
38 bool shrink_to_fit); 39 bool shrink_to_fit);
39 40
40 static void set_max_ipc_message_size_for_test(int64_t max_message_size) { 41 static void set_max_ipc_message_size_for_test(int64_t max_message_size) {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 bool filter_messages_; 81 bool filter_messages_;
81 // A list of message_ids to filter. 82 // A list of message_ids to filter.
82 std::set<int> message_id_whitelist_; 83 std::set<int> message_id_whitelist_;
83 // Maximum IPC msg size (default to kMaximumMessageSize; override for testing) 84 // Maximum IPC msg size (default to kMaximumMessageSize; override for testing)
84 static int64_t max_ipc_message_size_; 85 static int64_t max_ipc_message_size_;
85 86
86 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); 87 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient);
87 }; 88 };
88 89
89 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ 90 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698