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

Side by Side Diff: chrome/browser/extensions/api/streams_private/streams_private_api.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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) 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_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 23 matching lines...) Expand all
34 ~StreamsPrivateAPI() override; 34 ~StreamsPrivateAPI() override;
35 35
36 // Send the onExecuteMimeTypeHandler event to |extension_id|. 36 // Send the onExecuteMimeTypeHandler event to |extension_id|.
37 // |web_contents| is used to determine the tabId where the document is being 37 // |web_contents| is used to determine the tabId where the document is being
38 // opened. The data for the document will be readable from |stream|, and 38 // opened. The data for the document will be readable from |stream|, and
39 // should be |expected_content_size| bytes long. If the viewer is being opened 39 // should be |expected_content_size| bytes long. If the viewer is being opened
40 // in a BrowserPlugin, specify a non-empty |view_id| of the plugin. |embedded| 40 // in a BrowserPlugin, specify a non-empty |view_id| of the plugin. |embedded|
41 // should be set to whether the document is embedded within another document. 41 // should be set to whether the document is embedded within another document.
42 void ExecuteMimeTypeHandler(const std::string& extension_id, 42 void ExecuteMimeTypeHandler(const std::string& extension_id,
43 content::WebContents* web_contents, 43 content::WebContents* web_contents,
44 scoped_ptr<content::StreamInfo> stream, 44 std::unique_ptr<content::StreamInfo> stream,
45 const std::string& view_id, 45 const std::string& view_id,
46 int64_t expected_content_size, 46 int64_t expected_content_size,
47 bool embedded, 47 bool embedded,
48 int render_process_id, 48 int render_process_id,
49 int render_frame_id); 49 int render_frame_id);
50 50
51 void AbortStream(const std::string& extension_id, 51 void AbortStream(const std::string& extension_id,
52 const GURL& stream_url, 52 const GURL& stream_url,
53 const base::Closure& callback); 53 const base::Closure& callback);
54 54
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 private: 98 private:
99 void OnClose(); 99 void OnClose();
100 100
101 std::string stream_url_; 101 std::string stream_url_;
102 }; 102 };
103 103
104 } // namespace extensions 104 } // namespace extensions
105 105
106 #endif // CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_ 106 #endif // CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698