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

Side by Side Diff: chrome/common/security_filter_peer.h

Issue 3053009: Pepper stream-to-file plumbing.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 | « chrome/common/resource_dispatcher_unittest.cc ('k') | chrome/plugin/chrome_plugin_host.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 5
6 #ifndef CHROME_COMMON_SECURITY_FILTER_PEER_H__ 6 #ifndef CHROME_COMMON_SECURITY_FILTER_PEER_H__
7 #define CHROME_COMMON_SECURITY_FILTER_PEER_H__ 7 #define CHROME_COMMON_SECURITY_FILTER_PEER_H__
8 8
9 #include "webkit/glue/resource_loader_bridge.h" 9 #include "webkit/glue/resource_loader_bridge.h"
10 10
(...skipping 20 matching lines...) Expand all
31 // ResourceLoaderBridge::Peer methods. 31 // ResourceLoaderBridge::Peer methods.
32 virtual void OnUploadProgress(uint64 position, uint64 size); 32 virtual void OnUploadProgress(uint64 position, uint64 size);
33 virtual bool OnReceivedRedirect( 33 virtual bool OnReceivedRedirect(
34 const GURL& new_url, 34 const GURL& new_url,
35 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, 35 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info,
36 bool* has_new_first_party_for_cookies, 36 bool* has_new_first_party_for_cookies,
37 GURL* new_first_party_for_cookies); 37 GURL* new_first_party_for_cookies);
38 virtual void OnReceivedResponse( 38 virtual void OnReceivedResponse(
39 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, 39 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info,
40 bool content_filtered); 40 bool content_filtered);
41 virtual void OnDownloadedData(int len) {}
41 virtual void OnReceivedData(const char* data, int len); 42 virtual void OnReceivedData(const char* data, int len);
42 virtual void OnCompletedRequest(const URLRequestStatus& status, 43 virtual void OnCompletedRequest(const URLRequestStatus& status,
43 const std::string& security_info); 44 const std::string& security_info);
44 virtual GURL GetURLForDebugging() const; 45 virtual GURL GetURLForDebugging() const;
45 46
46 protected: 47 protected:
47 SecurityFilterPeer(webkit_glue::ResourceLoaderBridge* resource_loader_bridge, 48 SecurityFilterPeer(webkit_glue::ResourceLoaderBridge* resource_loader_bridge,
48 webkit_glue::ResourceLoaderBridge::Peer* peer); 49 webkit_glue::ResourceLoaderBridge::Peer* peer);
49 50
50 webkit_glue::ResourceLoaderBridge::Peer* original_peer_; 51 webkit_glue::ResourceLoaderBridge::Peer* original_peer_;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 114
114 private: 115 private:
115 webkit_glue::ResourceLoaderBridge::ResponseInfo response_info_; 116 webkit_glue::ResourceLoaderBridge::ResponseInfo response_info_;
116 std::string mime_type_; 117 std::string mime_type_;
117 std::string data_; 118 std::string data_;
118 119
119 DISALLOW_COPY_AND_ASSIGN(ReplaceContentPeer); 120 DISALLOW_COPY_AND_ASSIGN(ReplaceContentPeer);
120 }; 121 };
121 122
122 #endif // CHROME_COMMON_SECURITY_FILTER_PEER_H__ 123 #endif // CHROME_COMMON_SECURITY_FILTER_PEER_H__
OLDNEW
« no previous file with comments | « chrome/common/resource_dispatcher_unittest.cc ('k') | chrome/plugin/chrome_plugin_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698