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

Side by Side Diff: webkit/plugins/ppapi/ppb_file_chooser_impl.cc

Issue 9391013: Make a global enum to differentiate impl & proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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) 2011 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 "webkit/plugins/ppapi/ppb_file_chooser_impl.h" 5 #include "webkit/plugins/ppapi/ppb_file_chooser_impl.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 private: 62 private:
63 scoped_refptr<PPB_FileChooser_Impl> file_chooser_; 63 scoped_refptr<PPB_FileChooser_Impl> file_chooser_;
64 }; 64 };
65 65
66 } // namespace 66 } // namespace
67 67
68 PPB_FileChooser_Impl::PPB_FileChooser_Impl( 68 PPB_FileChooser_Impl::PPB_FileChooser_Impl(
69 PP_Instance instance, 69 PP_Instance instance,
70 PP_FileChooserMode_Dev mode, 70 PP_FileChooserMode_Dev mode,
71 const char* accept_mime_types) 71 const char* accept_mime_types)
72 : Resource(instance), 72 : Resource(::ppapi::OBJECT_IS_IMPL, instance),
73 mode_(mode), 73 mode_(mode),
74 next_chosen_file_index_(0) { 74 next_chosen_file_index_(0) {
75 if (accept_mime_types) 75 if (accept_mime_types)
76 accept_mime_types_ = std::string(accept_mime_types); 76 accept_mime_types_ = std::string(accept_mime_types);
77 } 77 }
78 78
79 PPB_FileChooser_Impl::~PPB_FileChooser_Impl() { 79 PPB_FileChooser_Impl::~PPB_FileChooser_Impl() {
80 } 80 }
81 81
82 // static 82 // static
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 continue; 208 continue;
209 StringToLowerASCII(&mime_type); 209 StringToLowerASCII(&mime_type);
210 normalized_mime_type_list.push_back(WebString::fromUTF8(mime_type.data(), 210 normalized_mime_type_list.push_back(WebString::fromUTF8(mime_type.data(),
211 mime_type.size())); 211 mime_type.size()));
212 } 212 }
213 return normalized_mime_type_list; 213 return normalized_mime_type_list;
214 } 214 }
215 215
216 } // namespace ppapi 216 } // namespace ppapi
217 } // namespace webkit 217 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698