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

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

Issue 2475543003: Introduce the image_decoder service (Closed)
Patch Set: . 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
« no previous file with comments | « chrome/utility/DEPS ('k') | chrome/utility/chrome_content_utility_client.cc » ('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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 17 matching lines...) Expand all
28 28
29 class ChromeContentUtilityClient : public content::ContentUtilityClient { 29 class ChromeContentUtilityClient : public content::ContentUtilityClient {
30 public: 30 public:
31 ChromeContentUtilityClient(); 31 ChromeContentUtilityClient();
32 ~ChromeContentUtilityClient() override; 32 ~ChromeContentUtilityClient() override;
33 33
34 void UtilityThreadStarted() override; 34 void UtilityThreadStarted() override;
35 bool OnMessageReceived(const IPC::Message& message) override; 35 bool OnMessageReceived(const IPC::Message& message) override;
36 void ExposeInterfacesToBrowser( 36 void ExposeInterfacesToBrowser(
37 service_manager::InterfaceRegistry* registry) override; 37 service_manager::InterfaceRegistry* registry) override;
38 void RegisterServices(StaticServiceMap* services) override;
38 39
39 void AddHandler(std::unique_ptr<UtilityMessageHandler> handler); 40 void AddHandler(std::unique_ptr<UtilityMessageHandler> handler);
40 41
41 static void PreSandboxStartup(); 42 static void PreSandboxStartup();
42 43
43 private: 44 private:
44 // IPC message handlers. 45 // IPC message handlers.
45 void OnUnpackWebResource(const std::string& resource_data); 46 void OnUnpackWebResource(const std::string& resource_data);
46 #if defined(OS_CHROMEOS) 47 #if defined(OS_CHROMEOS)
47 void OnCreateZipFile(const base::FilePath& src_dir, 48 void OnCreateZipFile(const base::FilePath& src_dir,
(...skipping 23 matching lines...) Expand all
71 72
72 // Flag to enable whitelisting. 73 // Flag to enable whitelisting.
73 bool filter_messages_; 74 bool filter_messages_;
74 // A list of message_ids to filter. 75 // A list of message_ids to filter.
75 std::set<int> message_id_whitelist_; 76 std::set<int> message_id_whitelist_;
76 77
77 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); 78 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient);
78 }; 79 };
79 80
80 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ 81 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/utility/DEPS ('k') | chrome/utility/chrome_content_utility_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698