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

Side by Side Diff: content/ppapi_plugin/ppapi_blink_platform_impl.h

Issue 2831033002: Use unique_ptr for Platform::CreateURLLoader (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | content/ppapi_plugin/ppapi_blink_platform_impl.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) 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 CONTENT_PPAPI_PLUGIN_PPAPI_BLINK_PLATFORM_IMPL_H_ 5 #ifndef CONTENT_PPAPI_PLUGIN_PPAPI_BLINK_PLATFORM_IMPL_H_
6 #define CONTENT_PPAPI_PLUGIN_PPAPI_BLINK_PLATFORM_IMPL_H_ 6 #define CONTENT_PPAPI_PLUGIN_PPAPI_BLINK_PLATFORM_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 25 matching lines...) Expand all
36 std::unique_ptr<blink::WebMessagePortChannel>* channel1, 36 std::unique_ptr<blink::WebMessagePortChannel>* channel1,
37 std::unique_ptr<blink::WebMessagePortChannel>* channel2) override; 37 std::unique_ptr<blink::WebMessagePortChannel>* channel2) override;
38 virtual void setCookies(const blink::WebURL& url, 38 virtual void setCookies(const blink::WebURL& url,
39 const blink::WebURL& first_party_for_cookies, 39 const blink::WebURL& first_party_for_cookies,
40 const blink::WebString& value); 40 const blink::WebString& value);
41 virtual blink::WebString cookies( 41 virtual blink::WebString cookies(
42 const blink::WebURL& url, 42 const blink::WebURL& url,
43 const blink::WebURL& first_party_for_cookies); 43 const blink::WebURL& first_party_for_cookies);
44 blink::WebString DefaultLocale() override; 44 blink::WebString DefaultLocale() override;
45 blink::WebThemeEngine* ThemeEngine() override; 45 blink::WebThemeEngine* ThemeEngine() override;
46 blink::WebURLLoader* CreateURLLoader() override; 46 std::unique_ptr<blink::WebURLLoader> CreateURLLoader() override;
47 void GetPluginList(bool refresh, 47 void GetPluginList(bool refresh,
48 const blink::WebSecurityOrigin& mainFrameOrigin, 48 const blink::WebSecurityOrigin& mainFrameOrigin,
49 blink::WebPluginListBuilder*) override; 49 blink::WebPluginListBuilder*) override;
50 blink::WebData LoadResource(const char* name) override; 50 blink::WebData LoadResource(const char* name) override;
51 blink::WebStorageNamespace* CreateLocalStorageNamespace() override; 51 blink::WebStorageNamespace* CreateLocalStorageNamespace() override;
52 virtual void dispatchStorageEvent(const blink::WebString& key, 52 virtual void dispatchStorageEvent(const blink::WebString& key,
53 const blink::WebString& oldValue, const blink::WebString& newValue, 53 const blink::WebString& oldValue, const blink::WebString& newValue,
54 const blink::WebString& origin, const blink::WebURL& url, 54 const blink::WebString& origin, const blink::WebURL& url,
55 bool isLocalStorage); 55 bool isLocalStorage);
56 int DatabaseDeleteFile(const blink::WebString& vfs_file_name, 56 int DatabaseDeleteFile(const blink::WebString& vfs_file_name,
57 bool sync_dir) override; 57 bool sync_dir) override;
58 58
59 private: 59 private:
60 #if !defined(OS_ANDROID) && !defined(OS_WIN) 60 #if !defined(OS_ANDROID) && !defined(OS_WIN)
61 class SandboxSupport; 61 class SandboxSupport;
62 std::unique_ptr<SandboxSupport> sandbox_support_; 62 std::unique_ptr<SandboxSupport> sandbox_support_;
63 #endif 63 #endif
64 64
65 DISALLOW_COPY_AND_ASSIGN(PpapiBlinkPlatformImpl); 65 DISALLOW_COPY_AND_ASSIGN(PpapiBlinkPlatformImpl);
66 }; 66 };
67 67
68 } // namespace content 68 } // namespace content
69 69
70 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_BLINK_PLATFORM_IMPL_H_ 70 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_BLINK_PLATFORM_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/ppapi_plugin/ppapi_blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698