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

Side by Side Diff: webkit/plugins/npapi/webplugin_impl.cc

Issue 9271061: Cleanup: Remove static storage for variables in an unnamed namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style change. Created 8 years, 11 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
« no previous file with comments | « webkit/plugins/npapi/plugin_list.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/npapi/webplugin_impl.h" 5 #include "webkit/plugins/npapi/webplugin_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/linked_ptr.h" 9 #include "base/memory/linked_ptr.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 using WebKit::WebURLResponse; 74 using WebKit::WebURLResponse;
75 using WebKit::WebVector; 75 using WebKit::WebVector;
76 using WebKit::WebView; 76 using WebKit::WebView;
77 using webkit_glue::MultipartResponseDelegate; 77 using webkit_glue::MultipartResponseDelegate;
78 78
79 namespace webkit { 79 namespace webkit {
80 namespace npapi { 80 namespace npapi {
81 81
82 namespace { 82 namespace {
83 83
84 static const char kFlashMimeType[] = "application/x-shockwave-flash"; 84 const char kFlashMimeType[] = "application/x-shockwave-flash";
85 static const char kOctetStreamMimeType[] = "application/octet-stream"; 85 const char kOctetStreamMimeType[] = "application/octet-stream";
86 static const char kHTMLMimeType[] = "text/html"; 86 const char kHTMLMimeType[] = "text/html";
87 static const char kPlainTextMimeType[] = "text/plain"; 87 const char kPlainTextMimeType[] = "text/plain";
88 static const char kPluginFlashMimeType[] = "Plugin.FlashMIMEType"; 88 const char kPluginFlashMimeType[] = "Plugin.FlashMIMEType";
89
89 enum { 90 enum {
90 MIME_TYPE_OK = 0, 91 MIME_TYPE_OK = 0,
91 MIME_TYPE_EMPTY, 92 MIME_TYPE_EMPTY,
92 MIME_TYPE_OCTETSTREAM, 93 MIME_TYPE_OCTETSTREAM,
93 MIME_TYPE_HTML, 94 MIME_TYPE_HTML,
94 MIME_TYPE_PLAINTEXT, 95 MIME_TYPE_PLAINTEXT,
95 MIME_TYPE_OTHER, 96 MIME_TYPE_OTHER,
96 MIME_TYPE_NUM_EVENTS 97 MIME_TYPE_NUM_EVENTS
97 }; 98 };
98 99
(...skipping 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after
1391 webframe_->setReferrerForRequest(*request, plugin_url_); 1392 webframe_->setReferrerForRequest(*request, plugin_url_);
1392 break; 1393 break;
1393 1394
1394 default: 1395 default:
1395 break; 1396 break;
1396 } 1397 }
1397 } 1398 }
1398 1399
1399 } // namespace npapi 1400 } // namespace npapi
1400 } // namespace webkit 1401 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/plugin_list.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698