| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_frame/chrome_frame_npapi.h" | 5 #include "chrome_frame/chrome_frame_npapi.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "base/win_util.h" | |
| 12 #include "chrome/test/automation/tab_proxy.h" | 11 #include "chrome/test/automation/tab_proxy.h" |
| 13 #include "chrome_frame/ff_privilege_check.h" | 12 #include "chrome_frame/ff_privilege_check.h" |
| 14 #include "chrome_frame/np_utils.h" | 13 #include "chrome_frame/np_utils.h" |
| 15 #include "chrome_frame/scoped_ns_ptr_win.h" | 14 #include "chrome_frame/scoped_ns_ptr_win.h" |
| 16 #include "chrome_frame/utils.h" | 15 #include "chrome_frame/utils.h" |
| 17 | 16 |
| 18 MessageLoop* ChromeFrameNPAPI::message_loop_ = NULL; | 17 MessageLoop* ChromeFrameNPAPI::message_loop_ = NULL; |
| 19 int ChromeFrameNPAPI::instance_count_ = 0; | 18 int ChromeFrameNPAPI::instance_count_ = 0; |
| 20 | 19 |
| 21 static const char* kNpEventNames[] = { | 20 static const char* kNpEventNames[] = { |
| (...skipping 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1436 } | 1435 } |
| 1437 | 1436 |
| 1438 int32 ChromeFrameNPAPI::Write(NPStream* stream, int32 offset, int32 len, | 1437 int32 ChromeFrameNPAPI::Write(NPStream* stream, int32 offset, int32 len, |
| 1439 void* buffer) { | 1438 void* buffer) { |
| 1440 return url_fetcher_.Write(stream, offset, len, buffer); | 1439 return url_fetcher_.Write(stream, offset, len, buffer); |
| 1441 } | 1440 } |
| 1442 | 1441 |
| 1443 NPError ChromeFrameNPAPI::DestroyStream(NPStream* stream, NPReason reason) { | 1442 NPError ChromeFrameNPAPI::DestroyStream(NPStream* stream, NPReason reason) { |
| 1444 return url_fetcher_.DestroyStream(stream, reason); | 1443 return url_fetcher_.DestroyStream(stream, reason); |
| 1445 } | 1444 } |
| OLD | NEW |