OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_COMMON_CHROME_PLUGIN_UTIL_H_ | 5 #ifndef CHROME_COMMON_CHROME_PLUGIN_UTIL_H_ |
6 #define CHROME_COMMON_CHROME_PLUGIN_UTIL_H_ | 6 #define CHROME_COMMON_CHROME_PLUGIN_UTIL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/non_thread_safe.h" | 12 #include "base/non_thread_safe.h" |
13 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
14 #include "chrome/common/chrome_plugin_api.h" | 14 #include "chrome/common/chrome_plugin_api.h" |
| 15 #include "chrome/common/notification_observer.h" |
15 #include "chrome/common/notification_registrar.h" | 16 #include "chrome/common/notification_registrar.h" |
16 | 17 |
17 class ChromePluginLib; | 18 class ChromePluginLib; |
18 class MessageLoop; | 19 class MessageLoop; |
19 namespace net { | 20 namespace net { |
20 class HttpResponseHeaders; | 21 class HttpResponseHeaders; |
21 } | 22 } |
22 | 23 |
23 // A helper struct to ensure the CPRequest data is cleaned up when done. | 24 // A helper struct to ensure the CPRequest data is cleaned up when done. |
24 // This class is reused for requests made by the browser (and intercepted by the | 25 // This class is reused for requests made by the browser (and intercepted by the |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 return cstr; | 81 return cstr; |
81 } | 82 } |
82 | 83 |
83 CPError CPB_GetCommandLineArgumentsCommon(const char* url, | 84 CPError CPB_GetCommandLineArgumentsCommon(const char* url, |
84 std::string* arguments); | 85 std::string* arguments); |
85 | 86 |
86 void* STDCALL CPB_Alloc(uint32 size); | 87 void* STDCALL CPB_Alloc(uint32 size); |
87 void STDCALL CPB_Free(void* memory); | 88 void STDCALL CPB_Free(void* memory); |
88 | 89 |
89 #endif // CHROME_COMMON_CHROME_PLUGIN_UTIL_H_ | 90 #endif // CHROME_COMMON_CHROME_PLUGIN_UTIL_H_ |
OLD | NEW |