Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / ios / chrome / browser / experimental_flags.h
blob0e18c2d531ac85c84e290bf4947e97fadf6c3166
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef IOS_CHROME_BROWSER_EXPERIMENTAL_FLAGS_H_
6 #define IOS_CHROME_BROWSER_EXPERIMENTAL_FLAGS_H_
8 #include <stdlib.h>
10 // This file can be empty. Its purpose is to contain the relatively short lived
11 // declarations required for experimental flags.
13 namespace experimental_flags {
15 // Whether background crash report upload should generate a local notification.
16 bool IsAlertOnBackgroundUploadEnabled();
18 // Whether external URL request blocking from subframes is enabled.
19 bool IsExternalURLBlockingEnabled();
21 // Whether the new bookmark collection experience is enabled.
22 bool IsBookmarkCollectionEnabled();
24 // Whether to extract salient images from pages at load time if bookmarked.
25 bool IsBookmarkImageFetchingOnVisitEnabled();
27 // Whether the app uses WKWebView instead of UIWebView.
28 bool IsWKWebViewEnabled();
30 // Returns the size in MB of the memory wedge to insert during a cold start.
31 // If 0, no memory wedge should be inserted.
32 size_t MemoryWedgeSizeInMB();
34 } // namespace experimental_flags
36 #endif // IOS_CHROME_BROWSER_EXPERIMENTAL_FLAGS_H_