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

Side by Side Diff: content/renderer/pepper/pepper_url_loader_host.h

Issue 633303002: Replace FINAL and OVERRIDE with their C++11 counterparts in content/renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 21 matching lines...) Expand all
32 // pending until the plugin resource attaches to it. 32 // pending until the plugin resource attaches to it.
33 PepperURLLoaderHost(RendererPpapiHostImpl* host, 33 PepperURLLoaderHost(RendererPpapiHostImpl* host,
34 bool main_document_loader, 34 bool main_document_loader,
35 PP_Instance instance, 35 PP_Instance instance,
36 PP_Resource resource); 36 PP_Resource resource);
37 virtual ~PepperURLLoaderHost(); 37 virtual ~PepperURLLoaderHost();
38 38
39 // ResourceHost implementation. 39 // ResourceHost implementation.
40 virtual int32_t OnResourceMessageReceived( 40 virtual int32_t OnResourceMessageReceived(
41 const IPC::Message& msg, 41 const IPC::Message& msg,
42 ppapi::host::HostMessageContext* context) OVERRIDE; 42 ppapi::host::HostMessageContext* context) override;
43 43
44 // blink::WebURLLoaderClient implementation. 44 // blink::WebURLLoaderClient implementation.
45 virtual void willSendRequest(blink::WebURLLoader* loader, 45 virtual void willSendRequest(blink::WebURLLoader* loader,
46 blink::WebURLRequest& new_request, 46 blink::WebURLRequest& new_request,
47 const blink::WebURLResponse& redir_response); 47 const blink::WebURLResponse& redir_response);
48 virtual void didSendData(blink::WebURLLoader* loader, 48 virtual void didSendData(blink::WebURLLoader* loader,
49 unsigned long long bytes_sent, 49 unsigned long long bytes_sent,
50 unsigned long long total_bytes_to_be_sent); 50 unsigned long long total_bytes_to_be_sent);
51 virtual void didReceiveResponse(blink::WebURLLoader* loader, 51 virtual void didReceiveResponse(blink::WebURLLoader* loader,
52 const blink::WebURLResponse& response); 52 const blink::WebURLResponse& response);
53 virtual void didDownloadData(blink::WebURLLoader* loader, 53 virtual void didDownloadData(blink::WebURLLoader* loader,
54 int data_length, 54 int data_length,
55 int encoded_data_length); 55 int encoded_data_length);
56 virtual void didReceiveData(blink::WebURLLoader* loader, 56 virtual void didReceiveData(blink::WebURLLoader* loader,
57 const char* data, 57 const char* data,
58 int data_length, 58 int data_length,
59 int encoded_data_length); 59 int encoded_data_length);
60 virtual void didFinishLoading(blink::WebURLLoader* loader, 60 virtual void didFinishLoading(blink::WebURLLoader* loader,
61 double finish_time, 61 double finish_time,
62 int64_t total_encoded_data_length); 62 int64_t total_encoded_data_length);
63 virtual void didFail(blink::WebURLLoader* loader, 63 virtual void didFail(blink::WebURLLoader* loader,
64 const blink::WebURLError& error); 64 const blink::WebURLError& error);
65 65
66 private: 66 private:
67 // ResourceHost protected overrides. 67 // ResourceHost protected overrides.
68 virtual void DidConnectPendingHostToResource() OVERRIDE; 68 virtual void DidConnectPendingHostToResource() override;
69 69
70 // IPC messages 70 // IPC messages
71 int32_t OnHostMsgOpen(ppapi::host::HostMessageContext* context, 71 int32_t OnHostMsgOpen(ppapi::host::HostMessageContext* context,
72 const ppapi::URLRequestInfoData& request_data); 72 const ppapi::URLRequestInfoData& request_data);
73 int32_t InternalOnHostMsgOpen(ppapi::host::HostMessageContext* context, 73 int32_t InternalOnHostMsgOpen(ppapi::host::HostMessageContext* context,
74 const ppapi::URLRequestInfoData& request_data); 74 const ppapi::URLRequestInfoData& request_data);
75 int32_t OnHostMsgSetDeferLoading(ppapi::host::HostMessageContext* context, 75 int32_t OnHostMsgSetDeferLoading(ppapi::host::HostMessageContext* context,
76 bool defers_loading); 76 bool defers_loading);
77 int32_t OnHostMsgClose(ppapi::host::HostMessageContext* context); 77 int32_t OnHostMsgClose(ppapi::host::HostMessageContext* context);
78 int32_t OnHostMsgGrantUniversalAccess( 78 int32_t OnHostMsgGrantUniversalAccess(
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 bool pending_response_; 148 bool pending_response_;
149 149
150 base::WeakPtrFactory<PepperURLLoaderHost> weak_factory_; 150 base::WeakPtrFactory<PepperURLLoaderHost> weak_factory_;
151 151
152 DISALLOW_COPY_AND_ASSIGN(PepperURLLoaderHost); 152 DISALLOW_COPY_AND_ASSIGN(PepperURLLoaderHost);
153 }; 153 };
154 154
155 } // namespace content 155 } // namespace content
156 156
157 #endif // CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_ 157 #endif // CONTENT_RENDERER_PEPPER_PEPPER_URL_LOADER_HOST_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_try_catch.h ('k') | content/renderer/pepper/pepper_url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698