OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |