| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_FRAME_NPAPI_URL_REQUEST_H_ | 5 #ifndef CHROME_FRAME_NPAPI_URL_REQUEST_H_ |
| 6 #define CHROME_FRAME_NPAPI_URL_REQUEST_H_ | 6 #define CHROME_FRAME_NPAPI_URL_REQUEST_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/platform_thread.h" | 11 #include "base/platform_thread.h" |
| 12 #include "chrome_frame/plugin_url_request.h" | 12 #include "chrome_frame/plugin_url_request.h" |
| 13 #include "third_party/WebKit/WebCore/bridge/npapi.h" | 13 #include "third_party/npapi/bindings/npapi.h" |
| 14 | 14 |
| 15 class NPAPIUrlRequest; | 15 class NPAPIUrlRequest; |
| 16 class NPAPIUrlRequestManager : public PluginUrlRequestManager, | 16 class NPAPIUrlRequestManager : public PluginUrlRequestManager, |
| 17 public PluginUrlRequestDelegate { | 17 public PluginUrlRequestDelegate { |
| 18 public: | 18 public: |
| 19 NPAPIUrlRequestManager(); | 19 NPAPIUrlRequestManager(); |
| 20 ~NPAPIUrlRequestManager(); | 20 ~NPAPIUrlRequestManager(); |
| 21 | 21 |
| 22 void set_NPPInstance(NPP instance) { | 22 void set_NPPInstance(NPP instance) { |
| 23 instance_ = instance; | 23 instance_ = instance; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 static inline NPAPIUrlRequest* RequestFromNotifyData(void* notify_data) { | 64 static inline NPAPIUrlRequest* RequestFromNotifyData(void* notify_data) { |
| 65 return reinterpret_cast<NPAPIUrlRequest*>(notify_data); | 65 return reinterpret_cast<NPAPIUrlRequest*>(notify_data); |
| 66 } | 66 } |
| 67 | 67 |
| 68 NPP instance_; | 68 NPP instance_; |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 #endif // CHROME_FRAME_NPAPI_URL_REQUEST_H_ | 71 #endif // CHROME_FRAME_NPAPI_URL_REQUEST_H_ |
| 72 | 72 |
| OLD | NEW |