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

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

Issue 19737002: Enable sandbox in local discovery utility process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
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 "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 23 matching lines...) Expand all
34 class UtilityMessageHandler; 34 class UtilityMessageHandler;
35 35
36 class ChromeContentUtilityClient : public content::ContentUtilityClient { 36 class ChromeContentUtilityClient : public content::ContentUtilityClient {
37 public: 37 public:
38 ChromeContentUtilityClient(); 38 ChromeContentUtilityClient();
39 virtual ~ChromeContentUtilityClient(); 39 virtual ~ChromeContentUtilityClient();
40 40
41 virtual void UtilityThreadStarted() OVERRIDE; 41 virtual void UtilityThreadStarted() OVERRIDE;
42 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 42 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
43 43
44 static void PreSandboxStartup();
45
44 private: 46 private:
45 // IPC message handlers. 47 // IPC message handlers.
46 void OnUnpackExtension(const base::FilePath& extension_path, 48 void OnUnpackExtension(const base::FilePath& extension_path,
47 const std::string& extension_id, 49 const std::string& extension_id,
48 int location, int creation_flags); 50 int location, int creation_flags);
49 void OnUnpackWebResource(const std::string& resource_data); 51 void OnUnpackWebResource(const std::string& resource_data);
50 void OnParseUpdateManifest(const std::string& xml); 52 void OnParseUpdateManifest(const std::string& xml);
51 void OnDecodeImage(const std::vector<unsigned char>& encoded_data); 53 void OnDecodeImage(const std::vector<unsigned char>& encoded_data);
52 void OnDecodeImageBase64(const std::string& encoded_data); 54 void OnDecodeImageBase64(const std::string& encoded_data);
53 void OnRenderPDFPagesToMetafile( 55 void OnRenderPDFPagesToMetafile(
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 100
99 typedef ScopedVector<UtilityMessageHandler> Handlers; 101 typedef ScopedVector<UtilityMessageHandler> Handlers;
100 Handlers handlers_; 102 Handlers handlers_;
101 103
102 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); 104 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient);
103 }; 105 };
104 106
105 } // namespace chrome 107 } // namespace chrome
106 108
107 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ 109 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698