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

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

Issue 202863004: Fix "unreachable code" warnings (MSVC warning 4702) in content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 9 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 | « content/child/indexed_db/indexed_db_key_builders.cc ('k') | content/child/webcrypto/jwk.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) 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 "content/child/npapi/webplugin_delegate_impl.h" 5 #include "content/child/npapi/webplugin_delegate_impl.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 bool WebPluginDelegateImpl::IsUserGesture(const WebInputEvent& event) { 280 bool WebPluginDelegateImpl::IsUserGesture(const WebInputEvent& event) {
281 switch (event.type) { 281 switch (event.type) {
282 case WebInputEvent::MouseDown: 282 case WebInputEvent::MouseDown:
283 case WebInputEvent::MouseUp: 283 case WebInputEvent::MouseUp:
284 case WebInputEvent::KeyDown: 284 case WebInputEvent::KeyDown:
285 case WebInputEvent::KeyUp: 285 case WebInputEvent::KeyUp:
286 return true; 286 return true;
287 default: 287 default:
288 return false; 288 return false;
289 } 289 }
290 return false;
291 } 290 }
292 291
293 WebPluginResourceClient* WebPluginDelegateImpl::CreateResourceClient( 292 WebPluginResourceClient* WebPluginDelegateImpl::CreateResourceClient(
294 unsigned long resource_id, const GURL& url, int notify_id) { 293 unsigned long resource_id, const GURL& url, int notify_id) {
295 return instance()->CreateStream( 294 return instance()->CreateStream(
296 resource_id, url, std::string(), notify_id); 295 resource_id, url, std::string(), notify_id);
297 } 296 }
298 297
299 WebPluginResourceClient* WebPluginDelegateImpl::CreateSeekableResourceClient( 298 WebPluginResourceClient* WebPluginDelegateImpl::CreateSeekableResourceClient(
300 unsigned long resource_id, int range_request_id) { 299 unsigned long resource_id, int range_request_id) {
(...skipping 23 matching lines...) Expand all
324 resource_id, url, std::string(), notify_id); 323 resource_id, url, std::string(), notify_id);
325 324
326 bool copy_stream_data = !!(quirks_ & PLUGIN_QUIRK_COPY_STREAM_DATA); 325 bool copy_stream_data = !!(quirks_ & PLUGIN_QUIRK_COPY_STREAM_DATA);
327 plugin_stream->SetPluginURLFetcher(new PluginURLFetcher( 326 plugin_stream->SetPluginURLFetcher(new PluginURLFetcher(
328 plugin_stream, url, first_party_for_cookies, method, buf, len, 327 plugin_stream, url, first_party_for_cookies, method, buf, len,
329 referrer, notify_redirects, is_plugin_src_load, origin_pid, 328 referrer, notify_redirects, is_plugin_src_load, origin_pid,
330 render_frame_id, render_view_id, resource_id, copy_stream_data)); 329 render_frame_id, render_view_id, resource_id, copy_stream_data));
331 } 330 }
332 331
333 } // namespace content 332 } // namespace content
OLDNEW
« no previous file with comments | « content/child/indexed_db/indexed_db_key_builders.cc ('k') | content/child/webcrypto/jwk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698