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

Side by Side Diff: content/child/npapi/plugin_stream_posix.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 <string.h> 7 #include <string.h>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "webkit/plugins/npapi/plugin_instance.h" 12 #include "content/child/npapi/plugin_instance.h"
13 13
14 namespace webkit { 14 namespace content {
15 namespace npapi {
16 15
17 void PluginStream::ResetTempFileHandle() { 16 void PluginStream::ResetTempFileHandle() {
18 temp_file_ = NULL; 17 temp_file_ = NULL;
19 } 18 }
20 19
21 void PluginStream::ResetTempFileName() { 20 void PluginStream::ResetTempFileName() {
22 temp_file_path_ = base::FilePath(); 21 temp_file_path_ = base::FilePath();
23 } 22 }
24 23
25 void PluginStream::WriteAsFile() { 24 void PluginStream::WriteAsFile() {
(...skipping 24 matching lines...) Expand all
50 return; 49 return;
51 50
52 file_util::CloseFile(temp_file_); 51 file_util::CloseFile(temp_file_);
53 ResetTempFileHandle(); 52 ResetTempFileHandle();
54 } 53 }
55 54
56 bool PluginStream::TempFileIsValid() const { 55 bool PluginStream::TempFileIsValid() const {
57 return temp_file_ != NULL; 56 return temp_file_ != NULL;
58 } 57 }
59 58
60 } // namespace npapi 59 } // namespace content
61 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698