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

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 455623003: stale-while-revalidate experimental implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Support the bandwidth reduction proxy. Created 6 years, 3 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 #include "chrome/common/chrome_switches.h" 5 #include "chrome/common/chrome_switches.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 9
10 namespace switches { 10 namespace switches {
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 // Disables the "search button in omnibox" experiment. 342 // Disables the "search button in omnibox" experiment.
343 const char kDisableSearchButtonInOmnibox[] = 343 const char kDisableSearchButtonInOmnibox[] =
344 "disable-search-button-in-omnibox"; 344 "disable-search-button-in-omnibox";
345 345
346 // Disables using bubbles for session restore request. 346 // Disables using bubbles for session restore request.
347 const char kDisableSessionCrashedBubble[] = "disable-session-crashed-bubble"; 347 const char kDisableSessionCrashedBubble[] = "disable-session-crashed-bubble";
348 348
349 // Disable SPDY/3.1. This is a temporary testing flag. 349 // Disable SPDY/3.1. This is a temporary testing flag.
350 const char kDisableSpdy31[] = "disable-spdy31"; 350 const char kDisableSpdy31[] = "disable-spdy31";
351 351
352 // Disables use of the Cache-Control: stale-while-revalidate directive.
353 const char kDisableStaleWhileRevalidate[] = "disable-stale-while-revalidate";
354
352 // Disables the suggestions service. 355 // Disables the suggestions service.
353 const char kDisableSuggestionsService[] = "disable-suggestions-service"; 356 const char kDisableSuggestionsService[] = "disable-suggestions-service";
354 357
355 // Disables syncing browser data to a Google Account. 358 // Disables syncing browser data to a Google Account.
356 const char kDisableSync[] = "disable-sync"; 359 const char kDisableSync[] = "disable-sync";
357 360
358 // Disable synced notifications. 361 // Disable synced notifications.
359 const char kDisableSyncSyncedNotifications[] = 362 const char kDisableSyncSyncedNotifications[] =
360 "disable-sync-synced-notifications"; 363 "disable-sync-synced-notifications";
361 364
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 596
594 // Enables participation in the field trial for user feedback to spelling 597 // Enables participation in the field trial for user feedback to spelling
595 // service. 598 // service.
596 const char kEnableSpellingFeedbackFieldTrial[] = 599 const char kEnableSpellingFeedbackFieldTrial[] =
597 "enable-spelling-feedback-field-trial"; 600 "enable-spelling-feedback-field-trial";
598 601
599 // Enables a feature that holds back some SSLConnectJobs in order to 602 // Enables a feature that holds back some SSLConnectJobs in order to
600 // minimize the number of full SSL handshakes completed. 603 // minimize the number of full SSL handshakes completed.
601 const char kEnableSSLConnectJobWaiting[] = "enable-ssl-connect-job-waiting"; 604 const char kEnableSSLConnectJobWaiting[] = "enable-ssl-connect-job-waiting";
602 605
606 // Enables implementation of the Cache-Control: stale-while-revalidate directive
607 // which permits servers to allow the use of stale resources while revalidation
608 // proceeds in the background.
609 const char kEnableStaleWhileRevalidate[] = "enable-stale-while-revalidate";
610
603 // Enables an experimental hosted app experience. 611 // Enables an experimental hosted app experience.
604 const char kEnableStreamlinedHostedApps[] = "enable-streamlined-hosted-apps"; 612 const char kEnableStreamlinedHostedApps[] = "enable-streamlined-hosted-apps";
605 613
606 // Enables the suggestions service. 614 // Enables the suggestions service.
607 const char kEnableSuggestionsService[] = "enable-suggestions-service"; 615 const char kEnableSuggestionsService[] = "enable-suggestions-service";
608 616
609 // Enables synced notifications. 617 // Enables synced notifications.
610 const char kEnableSyncSyncedNotifications[] = 618 const char kEnableSyncSyncedNotifications[] =
611 "enable-sync-synced-notifications"; 619 "enable-sync-synced-notifications";
612 620
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
1363 1371
1364 // ----------------------------------------------------------------------------- 1372 // -----------------------------------------------------------------------------
1365 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1373 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1366 // 1374 //
1367 // You were going to just dump your switches here, weren't you? Instead, please 1375 // You were going to just dump your switches here, weren't you? Instead, please
1368 // put them in alphabetical order above, or in order inside the appropriate 1376 // put them in alphabetical order above, or in order inside the appropriate
1369 // ifdef at the bottom. The order should match the header. 1377 // ifdef at the bottom. The order should match the header.
1370 // ----------------------------------------------------------------------------- 1378 // -----------------------------------------------------------------------------
1371 1379
1372 } // namespace switches 1380 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698