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

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

Issue 138513002: Plumb network stack information about existence of cached copy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated comments from Matt & Ricardo. Created 6 years, 10 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
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 GURL* new_first_party_for_cookies) OVERRIDE; 55 GURL* new_first_party_for_cookies) OVERRIDE;
56 virtual void OnReceivedResponse( 56 virtual void OnReceivedResponse(
57 const webkit_glue::ResourceResponseInfo& info) OVERRIDE; 57 const webkit_glue::ResourceResponseInfo& info) OVERRIDE;
58 virtual void OnDownloadedData(int len, int encoded_data_length) OVERRIDE; 58 virtual void OnDownloadedData(int len, int encoded_data_length) OVERRIDE;
59 virtual void OnReceivedData(const char* data, 59 virtual void OnReceivedData(const char* data,
60 int data_length, 60 int data_length,
61 int encoded_data_length) OVERRIDE; 61 int encoded_data_length) OVERRIDE;
62 virtual void OnCompletedRequest( 62 virtual void OnCompletedRequest(
63 int error_code, 63 int error_code,
64 bool was_ignored_by_handler, 64 bool was_ignored_by_handler,
65 bool stale_copy_in_cache,
65 const std::string& security_info, 66 const std::string& security_info,
66 const base::TimeTicks& completion_time) OVERRIDE; 67 const base::TimeTicks& completion_time) OVERRIDE;
67 68
68 PluginStreamUrl* plugin_stream_; 69 PluginStreamUrl* plugin_stream_;
69 GURL url_; 70 GURL url_;
70 GURL first_party_for_cookies_; 71 GURL first_party_for_cookies_;
71 std::string method_; 72 std::string method_;
72 GURL referrer_; 73 GURL referrer_;
73 bool notify_redirects_; 74 bool notify_redirects_;
74 bool is_plugin_src_load_; 75 bool is_plugin_src_load_;
75 unsigned long resource_id_; 76 unsigned long resource_id_;
76 bool copy_stream_data_; 77 bool copy_stream_data_;
77 int64 data_offset_; 78 int64 data_offset_;
78 bool pending_failure_notification_; 79 bool pending_failure_notification_;
79 80
80 scoped_ptr<webkit_glue::MultipartResponseDelegate> multipart_delegate_; 81 scoped_ptr<webkit_glue::MultipartResponseDelegate> multipart_delegate_;
81 82
82 scoped_ptr<webkit_glue::ResourceLoaderBridge> bridge_; 83 scoped_ptr<webkit_glue::ResourceLoaderBridge> bridge_;
83 84
84 DISALLOW_COPY_AND_ASSIGN(PluginURLFetcher); 85 DISALLOW_COPY_AND_ASSIGN(PluginURLFetcher);
85 }; 86 };
86 87
87 } // namespace content 88 } // namespace content
88 89
89 #endif // CONTENT_CHILD_NPAPI_URL_FETCHER_H_ 90 #endif // CONTENT_CHILD_NPAPI_URL_FETCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698