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

Side by Side Diff: third_party/WebKit/public/platform/WebFileSystemCallbacks.h

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 21 matching lines...) Expand all
32 #define WebFileSystemCallbacks_h 32 #define WebFileSystemCallbacks_h
33 33
34 #include "WebCommon.h" 34 #include "WebCommon.h"
35 #include "WebFileError.h" 35 #include "WebFileError.h"
36 #include "WebFileSystemEntry.h" 36 #include "WebFileSystemEntry.h"
37 #include "WebFileSystemType.h" 37 #include "WebFileSystemType.h"
38 #include "WebPrivatePtr.h" 38 #include "WebPrivatePtr.h"
39 #include "WebVector.h" 39 #include "WebVector.h"
40 40
41 #if INSIDE_BLINK 41 #if INSIDE_BLINK
42 #include <memory> 42 #include "wtf/OwnPtr.h"
43 #include "wtf/PassOwnPtr.h"
43 #endif 44 #endif
44 45
45 namespace blink { 46 namespace blink {
46 47
47 class AsyncFileSystemCallbacks; 48 class AsyncFileSystemCallbacks;
48 class WebFileWriter; 49 class WebFileWriter;
49 class WebString; 50 class WebString;
50 class WebURL; 51 class WebURL;
51 class WebFileSystemCallbacksPrivate; 52 class WebFileSystemCallbacksPrivate;
52 struct WebFileInfo; 53 struct WebFileInfo;
53 54
54 class WebFileSystemCallbacks { 55 class WebFileSystemCallbacks {
55 public: 56 public:
56 ~WebFileSystemCallbacks() { reset(); } 57 ~WebFileSystemCallbacks() { reset(); }
57 WebFileSystemCallbacks() { } 58 WebFileSystemCallbacks() { }
58 WebFileSystemCallbacks(const WebFileSystemCallbacks& c) { assign(c); } 59 WebFileSystemCallbacks(const WebFileSystemCallbacks& c) { assign(c); }
59 WebFileSystemCallbacks& operator=(const WebFileSystemCallbacks& c) 60 WebFileSystemCallbacks& operator=(const WebFileSystemCallbacks& c)
60 { 61 {
61 assign(c); 62 assign(c);
62 return *this; 63 return *this;
63 } 64 }
64 65
65 BLINK_PLATFORM_EXPORT void reset(); 66 BLINK_PLATFORM_EXPORT void reset();
66 BLINK_PLATFORM_EXPORT void assign(const WebFileSystemCallbacks&); 67 BLINK_PLATFORM_EXPORT void assign(const WebFileSystemCallbacks&);
67 68
68 #if INSIDE_BLINK 69 #if INSIDE_BLINK
69 BLINK_PLATFORM_EXPORT WebFileSystemCallbacks(std::unique_ptr<AsyncFileSystem Callbacks>&&); 70 BLINK_PLATFORM_EXPORT WebFileSystemCallbacks(WTF::PassOwnPtr<AsyncFileSystem Callbacks>&&);
70 #endif 71 #endif
71 72
72 // Callback for WebFileSystem's various operations that don't require 73 // Callback for WebFileSystem's various operations that don't require
73 // return values. 74 // return values.
74 BLINK_PLATFORM_EXPORT void didSucceed(); 75 BLINK_PLATFORM_EXPORT void didSucceed();
75 76
76 // Callback for WebFileSystem::readMetadata. Called with the file metadata 77 // Callback for WebFileSystem::readMetadata. Called with the file metadata
77 // for the requested path. 78 // for the requested path.
78 BLINK_PLATFORM_EXPORT void didReadMetadata(const WebFileInfo&); 79 BLINK_PLATFORM_EXPORT void didReadMetadata(const WebFileInfo&);
79 80
(...skipping 29 matching lines...) Expand all
109 // is fullfilled. 110 // is fullfilled.
110 BLINK_PLATFORM_EXPORT bool shouldBlockUntilCompletion() const; 111 BLINK_PLATFORM_EXPORT bool shouldBlockUntilCompletion() const;
111 112
112 private: 113 private:
113 WebPrivatePtr<WebFileSystemCallbacksPrivate> m_private; 114 WebPrivatePtr<WebFileSystemCallbacksPrivate> m_private;
114 }; 115 };
115 116
116 } // namespace blink 117 } // namespace blink
117 118
118 #endif 119 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebDataConsumerHandle.h ('k') | third_party/WebKit/public/platform/WebPrivateOwnPtr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698