Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: content/child/npapi/plugin_stream_win.cc

Issue 19761007: Move NPAPI implementation out of webkit/plugins/npapi and into content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #include "webkit/plugins/npapi/plugin_stream.h" 5 #include "content/child/npapi/plugin_stream.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "webkit/plugins/npapi/plugin_instance.h" 8 #include "content/child/npapi/plugin_instance.h"
9 9
10 namespace webkit { 10 namespace content {
11 namespace npapi {
12 11
13 void PluginStream::ResetTempFileHandle() { 12 void PluginStream::ResetTempFileHandle() {
14 temp_file_handle_ = INVALID_HANDLE_VALUE; 13 temp_file_handle_ = INVALID_HANDLE_VALUE;
15 } 14 }
16 15
17 void PluginStream::ResetTempFileName() { 16 void PluginStream::ResetTempFileName() {
18 temp_file_name_[0] = '\0'; 17 temp_file_name_[0] = '\0';
19 } 18 }
20 19
21 void PluginStream::WriteAsFile() { 20 void PluginStream::WriteAsFile() {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 return; 69 return;
71 70
72 CloseHandle(temp_file_handle_); 71 CloseHandle(temp_file_handle_);
73 ResetTempFileHandle(); 72 ResetTempFileHandle();
74 } 73 }
75 74
76 bool PluginStream::TempFileIsValid() const { 75 bool PluginStream::TempFileIsValid() const {
77 return temp_file_handle_ != INVALID_HANDLE_VALUE; 76 return temp_file_handle_ != INVALID_HANDLE_VALUE;
78 } 77 }
79 78
80 } // namespace npapi 79 } // namespace content
81 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698