OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/common/chrome_plugin_util.h" | 5 #include "chrome/common/chrome_plugin_util.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "chrome/common/chrome_plugin_lib.h" | 14 #include "chrome/common/chrome_plugin_lib.h" |
15 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
16 #include "chrome/common/notification_service.h" | 16 #include "content/common/notification_service.h" |
17 #include "net/base/load_flags.h" | 17 #include "net/base/load_flags.h" |
18 #include "net/http/http_response_headers.h" | 18 #include "net/http/http_response_headers.h" |
19 | 19 |
20 // | 20 // |
21 // ScopableCPRequest | 21 // ScopableCPRequest |
22 // | 22 // |
23 | 23 |
24 ScopableCPRequest::ScopableCPRequest(const char* u, const char* m, | 24 ScopableCPRequest::ScopableCPRequest(const char* u, const char* m, |
25 CPBrowsingContext c) { | 25 CPBrowsingContext c) { |
26 pdata = NULL; | 26 pdata = NULL; |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // Host functions shared by browser and plugin processes | 171 // Host functions shared by browser and plugin processes |
172 // | 172 // |
173 | 173 |
174 void* STDCALL CPB_Alloc(uint32 size) { | 174 void* STDCALL CPB_Alloc(uint32 size) { |
175 return malloc(size); | 175 return malloc(size); |
176 } | 176 } |
177 | 177 |
178 void STDCALL CPB_Free(void* memory) { | 178 void STDCALL CPB_Free(void* memory) { |
179 free(memory); | 179 free(memory); |
180 } | 180 } |
OLD | NEW |