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

Side by Side Diff: chrome/browser/extensions/api/web_request/upload_data_presenter.h

Issue 11348299: Removed dead code from chrome/browser/extensions/api/web_request (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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) 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_UPLOAD_DATA_PRESENTER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_UPLOAD_DATA_PRESENTER_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_UPLOAD_DATA_PRESENTER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_UPLOAD_DATA_PRESENTER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 public: 70 public:
71 RawDataPresenter(); 71 RawDataPresenter();
72 virtual ~RawDataPresenter(); 72 virtual ~RawDataPresenter();
73 73
74 // Implementation of UploadDataPresenter. 74 // Implementation of UploadDataPresenter.
75 virtual void FeedNext(const net::UploadElementReader& reader) OVERRIDE; 75 virtual void FeedNext(const net::UploadElementReader& reader) OVERRIDE;
76 virtual bool Succeeded() OVERRIDE; 76 virtual bool Succeeded() OVERRIDE;
77 virtual scoped_ptr<base::Value> Result() OVERRIDE; 77 virtual scoped_ptr<base::Value> Result() OVERRIDE;
78 78
79 private: 79 private:
80 // Clears resources and the success flag.
81 void Abort();
82
83 void FeedNextBytes(const char* bytes, size_t size); 80 void FeedNextBytes(const char* bytes, size_t size);
84 void FeedNextFile(const std::string& filename); 81 void FeedNextFile(const std::string& filename);
85 FRIEND_TEST_ALL_PREFIXES(WebRequestUploadDataPresenterTest, RawData); 82 FRIEND_TEST_ALL_PREFIXES(WebRequestUploadDataPresenterTest, RawData);
86 83
87 bool success_; 84 bool success_;
88 scoped_ptr<base::ListValue> list_; 85 scoped_ptr<base::ListValue> list_;
89 }; 86 };
90 87
91 // This class inspects the contents of bytes elements. It uses the 88 // This class inspects the contents of bytes elements. It uses the
92 // parser classes inheriting from FormDataParser to parse the concatenated 89 // parser classes inheriting from FormDataParser to parse the concatenated
(...skipping 26 matching lines...) Expand all
119 // Clears resources and the success flag. 116 // Clears resources and the success flag.
120 void Abort(); 117 void Abort();
121 scoped_ptr<FormDataParser> parser_; 118 scoped_ptr<FormDataParser> parser_;
122 bool success_; 119 bool success_;
123 scoped_ptr<base::DictionaryValue> dictionary_; 120 scoped_ptr<base::DictionaryValue> dictionary_;
124 }; 121 };
125 122
126 } // namespace extensions 123 } // namespace extensions
127 124
128 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_UPLOAD_DATA_PRESENTER_H_ 125 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_UPLOAD_DATA_PRESENTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698