RESOLVED FIXED133423
Change DeferrableOneShotTimer to use std::function instead of being a class template
https://bugs.webkit.org/show_bug.cgi?id=133423
Summary Change DeferrableOneShotTimer to use std::function instead of being a class t...
Anders Carlsson
Reported 2014-05-31 11:46:38 PDT
Change DeferrableOneShotTimer to use std::function instead of being a class template
Attachments
Patch (23.16 KB, patch)
2014-05-31 11:50 PDT, Anders Carlsson
no flags
Patch (25.74 KB, patch)
2014-05-31 12:18 PDT, Anders Carlsson
no flags
Patch (26.48 KB, patch)
2014-06-01 15:34 PDT, Anders Carlsson
no flags
Patch (26.53 KB, patch)
2014-06-01 15:40 PDT, Anders Carlsson
no flags
Patch (26.51 KB, patch)
2014-06-02 09:04 PDT, Anders Carlsson
koivisto: review+
Anders Carlsson
Comment 1 2014-05-31 11:50:17 PDT
WebKit Commit Bot
Comment 2 2014-05-31 11:51:31 PDT
Attachment 232318 [details] did not pass style-queue: ERROR: Source/WebCore/platform/Timer.h:158: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebCore/platform/Timer.h:198: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 2 in 21 files If any of these errors are false positives, please file a bug against check-webkit-style.
Anders Carlsson
Comment 3 2014-05-31 12:18:33 PDT
WebKit Commit Bot
Comment 4 2014-05-31 12:20:28 PDT
Attachment 232319 [details] did not pass style-queue: ERROR: Source/WebCore/platform/Timer.h:158: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebCore/platform/Timer.h:198: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 2 in 24 files If any of these errors are false positives, please file a bug against check-webkit-style.
Darin Adler
Comment 5 2014-05-31 14:56:19 PDT
Comment on attachment 232319 [details] Patch WebKit2/NetworkProcess/soup/NetworkProcessSoup.cpp: In member function 'void WebKit::NetworkProcess::platformSetCacheModel(WebKit::CacheModel)': WebKit2/NetworkProcess/soup/NetworkProcessSoup.cpp:119:72: error: invalid initialization of reference of type 'std::chrono::seconds& {aka std::chrono::duration<long int>&}' from expression of type 'double'
Anders Carlsson
Comment 6 2014-06-01 15:34:49 PDT
WebKit Commit Bot
Comment 7 2014-06-01 15:36:37 PDT
Attachment 232357 [details] did not pass style-queue: ERROR: Source/WebCore/platform/Timer.h:158: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebCore/platform/Timer.h:198: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 2 in 25 files If any of these errors are false positives, please file a bug against check-webkit-style.
Anders Carlsson
Comment 8 2014-06-01 15:40:02 PDT
WebKit Commit Bot
Comment 9 2014-06-01 15:41:19 PDT
Attachment 232358 [details] did not pass style-queue: ERROR: Source/WebCore/platform/Timer.h:158: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebCore/platform/Timer.h:198: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 2 in 25 files If any of these errors are false positives, please file a bug against check-webkit-style.
Csaba Osztrogonác
Comment 10 2014-06-02 06:31:51 PDT
Comment on attachment 232358 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=232358&action=review > Source/WebKit2/Shared/CacheModel.h:40 > - unsigned& cacheTotalCapacity, unsigned& cacheMinDeadCapacity, unsigned& cacheMaxDeadCapacity, double& deadDecodedDataDeletionInterval, > + unsigned& cacheTotalCapacity, unsigned& cacheMinDeadCapacity, unsigned& cacheMaxDeadCapacity, std::chrono::seconds& deadDecodedDataDeletionInterval, Please include <chrono> in this header not to break the EFL build. build log from EFL EWS: In file included from /mnt/eflews/git/webkit/Source/WebKit2/UIProcess/API/C/WKAPICast.h:30:0, from /mnt/eflews/git/webkit/WebKitBuild/Release/DerivedSources/WebKit2/include/WebKit/WKAPICast.h:1, from /mnt/eflews/git/webkit/Tools/WebKitTestRunner/efl/PlatformWebViewEfl.cpp:26: /mnt/eflews/git/webkit/Source/WebKit2/Shared/CacheModel.h:40:104: error: 'std::chrono' has not been declared unsigned& cacheTotalCapacity, unsigned& cacheMinDeadCapacity, unsigned& cacheMaxDeadCapacity, std::chrono::seconds& deadDecodedDataDeletionInterval, ^ /mnt/eflews/git/webkit/Source/WebKit2/Shared/CacheModel.h:40:119: error: expected ',' or '...' before '&' token unsigned& cacheTotalCapacity, unsigned& cacheMinDeadCapacity, unsigned& cacheMaxDeadCapacity, std::chrono::seconds& deadDecodedDataDeletionInterval,
Anders Carlsson
Comment 11 2014-06-02 09:04:27 PDT
WebKit Commit Bot
Comment 12 2014-06-02 09:06:37 PDT
Attachment 232381 [details] did not pass style-queue: ERROR: Source/WebCore/platform/Timer.h:158: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebCore/platform/Timer.h:198: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 2 in 25 files If any of these errors are false positives, please file a bug against check-webkit-style.
Anders Carlsson
Comment 13 2014-06-02 16:45:15 PDT
Note You need to log in before you can comment on or make changes to this bug.