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

Side by Side Diff: content/child/npapi/plugin_url_fetcher.h

Issue 671663002: Standardize usage of virtual/override/final in content/ (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_CHILD_NPAPI_URL_FETCHER_H_ 5 #ifndef CONTENT_CHILD_NPAPI_URL_FETCHER_H_
6 #define CONTENT_CHILD_NPAPI_URL_FETCHER_H_ 6 #define CONTENT_CHILD_NPAPI_URL_FETCHER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 16 matching lines...) Expand all
27 unsigned int len, 27 unsigned int len,
28 const GURL& referrer, 28 const GURL& referrer,
29 const std::string& range, 29 const std::string& range,
30 bool notify_redirects, 30 bool notify_redirects,
31 bool is_plugin_src_load, 31 bool is_plugin_src_load,
32 int origin_pid, 32 int origin_pid,
33 int render_frame_id, 33 int render_frame_id,
34 int render_view_id, 34 int render_view_id,
35 unsigned long resource_id, 35 unsigned long resource_id,
36 bool copy_stream_data); 36 bool copy_stream_data);
37 virtual ~PluginURLFetcher(); 37 ~PluginURLFetcher() override;
38 38
39 // Cancels the current request. 39 // Cancels the current request.
40 void Cancel(); 40 void Cancel();
41 41
42 // Called with the plugin's reply to NPP_URLRedirectNotify. 42 // Called with the plugin's reply to NPP_URLRedirectNotify.
43 void URLRedirectResponse(bool allow); 43 void URLRedirectResponse(bool allow);
44 44
45 GURL first_party_for_cookies() { return first_party_for_cookies_; } 45 GURL first_party_for_cookies() { return first_party_for_cookies_; }
46 GURL referrer() { return referrer_; } 46 GURL referrer() { return referrer_; }
47 int origin_pid() { return origin_pid_; } 47 int origin_pid() { return origin_pid_; }
48 int render_frame_id() { return render_frame_id_; } 48 int render_frame_id() { return render_frame_id_; }
49 int render_view_id() { return render_view_id_; } 49 int render_view_id() { return render_view_id_; }
50 bool copy_stream_data() { return copy_stream_data_; } 50 bool copy_stream_data() { return copy_stream_data_; }
51 bool pending_failure_notification() { return pending_failure_notification_; } 51 bool pending_failure_notification() { return pending_failure_notification_; }
52 52
53 private: 53 private:
54 // RequestPeer implementation: 54 // RequestPeer implementation:
55 virtual void OnUploadProgress(uint64 position, uint64 size) override; 55 void OnUploadProgress(uint64 position, uint64 size) override;
56 virtual bool OnReceivedRedirect(const net::RedirectInfo& redirect_info, 56 bool OnReceivedRedirect(const net::RedirectInfo& redirect_info,
57 const ResourceResponseInfo& info) override; 57 const ResourceResponseInfo& info) override;
58 virtual void OnReceivedResponse(const ResourceResponseInfo& info) override; 58 void OnReceivedResponse(const ResourceResponseInfo& info) override;
59 virtual void OnDownloadedData(int len, int encoded_data_length) override; 59 void OnDownloadedData(int len, int encoded_data_length) override;
60 virtual void OnReceivedData(const char* data, 60 void OnReceivedData(const char* data,
61 int data_length, 61 int data_length,
62 int encoded_data_length) override; 62 int encoded_data_length) override;
63 virtual void OnCompletedRequest(int error_code, 63 void OnCompletedRequest(int error_code,
64 bool was_ignored_by_handler, 64 bool was_ignored_by_handler,
65 bool stale_copy_in_cache, 65 bool stale_copy_in_cache,
66 const std::string& security_info, 66 const std::string& security_info,
67 const base::TimeTicks& completion_time, 67 const base::TimeTicks& completion_time,
68 int64 total_transfer_size) override; 68 int64 total_transfer_size) override;
69 69
70 // |plugin_stream_| becomes NULL after Cancel() to ensure no further calls 70 // |plugin_stream_| becomes NULL after Cancel() to ensure no further calls
71 // |reach it. 71 // |reach it.
72 PluginStreamUrl* plugin_stream_; 72 PluginStreamUrl* plugin_stream_;
73 GURL url_; 73 GURL url_;
74 GURL first_party_for_cookies_; 74 GURL first_party_for_cookies_;
75 GURL referrer_; 75 GURL referrer_;
76 bool notify_redirects_; 76 bool notify_redirects_;
77 bool is_plugin_src_load_; 77 bool is_plugin_src_load_;
78 int origin_pid_; 78 int origin_pid_;
79 int render_frame_id_; 79 int render_frame_id_;
80 int render_view_id_; 80 int render_view_id_;
81 unsigned long resource_id_; 81 unsigned long resource_id_;
82 bool copy_stream_data_; 82 bool copy_stream_data_;
83 int64 data_offset_; 83 int64 data_offset_;
84 bool pending_failure_notification_; 84 bool pending_failure_notification_;
85 85
86 scoped_ptr<MultipartResponseDelegate> multipart_delegate_; 86 scoped_ptr<MultipartResponseDelegate> multipart_delegate_;
87 87
88 scoped_ptr<ResourceLoaderBridge> bridge_; 88 scoped_ptr<ResourceLoaderBridge> bridge_;
89 89
90 DISALLOW_COPY_AND_ASSIGN(PluginURLFetcher); 90 DISALLOW_COPY_AND_ASSIGN(PluginURLFetcher);
91 }; 91 };
92 92
93 } // namespace content 93 } // namespace content
94 94
95 #endif // CONTENT_CHILD_NPAPI_URL_FETCHER_H_ 95 #endif // CONTENT_CHILD_NPAPI_URL_FETCHER_H_
OLDNEW
« no previous file with comments | « content/child/npapi/plugin_string_stream.h ('k') | content/child/npapi/webplugin_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698