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 21 matching lines...) Expand all Loading... |
32 struct PageRange; | 32 struct PageRange; |
33 } | 33 } |
34 | 34 |
35 namespace chrome { | 35 namespace chrome { |
36 | 36 |
37 class ProfileImportHandler; | 37 class ProfileImportHandler; |
38 | 38 |
39 class ChromeContentUtilityClient : public content::ContentUtilityClient { | 39 class ChromeContentUtilityClient : public content::ContentUtilityClient { |
40 public: | 40 public: |
41 ChromeContentUtilityClient(); | 41 ChromeContentUtilityClient(); |
42 ~ChromeContentUtilityClient(); | 42 virtual ~ChromeContentUtilityClient(); |
43 | 43 |
44 virtual void UtilityThreadStarted() OVERRIDE; | 44 virtual void UtilityThreadStarted() OVERRIDE; |
45 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 45 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
46 | 46 |
47 private: | 47 private: |
48 virtual bool Send(IPC::Message* message); | 48 virtual bool Send(IPC::Message* message); |
49 | 49 |
50 // IPC message handlers. | 50 // IPC message handlers. |
51 void OnUnpackExtension(const base::FilePath& extension_path, | 51 void OnUnpackExtension(const base::FilePath& extension_path, |
52 const std::string& extension_id, | 52 const std::string& extension_id, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 #endif // defined(OS_WIN) | 85 #endif // defined(OS_WIN) |
86 | 86 |
87 void OnGetPrinterCapsAndDefaults(const std::string& printer_name); | 87 void OnGetPrinterCapsAndDefaults(const std::string& printer_name); |
88 | 88 |
89 scoped_ptr<ProfileImportHandler> import_handler_; | 89 scoped_ptr<ProfileImportHandler> import_handler_; |
90 }; | 90 }; |
91 | 91 |
92 } // namespace chrome | 92 } // namespace chrome |
93 | 93 |
94 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ | 94 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ |
OLD | NEW |