| OLD | NEW |
| 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_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 struct PageRange; | 25 struct PageRange; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace chrome { | 28 namespace chrome { |
| 29 | 29 |
| 30 class ProfileImportHandler; | 30 class ProfileImportHandler; |
| 31 | 31 |
| 32 class ChromeContentUtilityClient : public content::ContentUtilityClient { | 32 class ChromeContentUtilityClient : public content::ContentUtilityClient { |
| 33 public: | 33 public: |
| 34 ChromeContentUtilityClient(); | 34 ChromeContentUtilityClient(); |
| 35 ~ChromeContentUtilityClient(); | 35 virtual ~ChromeContentUtilityClient(); |
| 36 | 36 |
| 37 virtual void UtilityThreadStarted() OVERRIDE; | 37 virtual void UtilityThreadStarted() OVERRIDE; |
| 38 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 38 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 // IPC message handlers. | 41 // IPC message handlers. |
| 42 void OnUnpackExtension(const base::FilePath& extension_path, | 42 void OnUnpackExtension(const base::FilePath& extension_path, |
| 43 const std::string& extension_id, | 43 const std::string& extension_id, |
| 44 int location, int creation_flags); | 44 int location, int creation_flags); |
| 45 void OnUnpackWebResource(const std::string& resource_data); | 45 void OnUnpackWebResource(const std::string& resource_data); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 90 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
| 91 | 91 |
| 92 scoped_ptr<ProfileImportHandler> import_handler_; | 92 scoped_ptr<ProfileImportHandler> import_handler_; |
| 93 | 93 |
| 94 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); | 94 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace chrome | 97 } // namespace chrome |
| 98 | 98 |
| 99 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ | 99 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ |
| OLD | NEW |