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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 namespace NetworkAgentState { 88 namespace NetworkAgentState {
89 static const char kNetworkAgentEnabled[] = "networkAgentEnabled"; 89 static const char kNetworkAgentEnabled[] = "networkAgentEnabled";
90 static const char kExtraRequestHeaders[] = "extraRequestHeaders"; 90 static const char kExtraRequestHeaders[] = "extraRequestHeaders";
91 static const char kCacheDisabled[] = "cacheDisabled"; 91 static const char kCacheDisabled[] = "cacheDisabled";
92 static const char kBypassServiceWorker[] = "bypassServiceWorker"; 92 static const char kBypassServiceWorker[] = "bypassServiceWorker";
93 static const char kUserAgentOverride[] = "userAgentOverride"; 93 static const char kUserAgentOverride[] = "userAgentOverride";
94 static const char kBlockedURLs[] = "blockedURLs"; 94 static const char kBlockedURLs[] = "blockedURLs";
95 static const char kTotalBufferSize[] = "totalBufferSize"; 95 static const char kTotalBufferSize[] = "totalBufferSize";
96 static const char kResourceBufferSize[] = "resourceBufferSize"; 96 static const char kResourceBufferSize[] = "resourceBufferSize";
97 } 97 } // namespace NetworkAgentState
98 98
99 namespace { 99 namespace {
100 // 100MB 100 // 100MB
101 static size_t g_maximum_total_buffer_size = 100 * 1000 * 1000; 101 static size_t g_maximum_total_buffer_size = 100 * 1000 * 1000;
102 102
103 // 10MB 103 // 10MB
104 static size_t g_maximum_resource_buffer_size = 10 * 1000 * 1000; 104 static size_t g_maximum_resource_buffer_size = 10 * 1000 * 1000;
105 105
106 // Pattern may contain stars ('*') which match to any (possibly empty) string. 106 // Pattern may contain stars ('*') which match to any (possibly empty) string.
107 // Stars implicitly assumed at the begin/end of pattern. 107 // Stars implicitly assumed at the begin/end of pattern.
(...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after
1532 inspected_frames->Root()), 1532 inspected_frames->Root()),
1533 this, 1533 this,
1534 &InspectorNetworkAgent::RemoveFinishedReplayXHRFired) {} 1534 &InspectorNetworkAgent::RemoveFinishedReplayXHRFired) {}
1535 1535
1536 void InspectorNetworkAgent::ShouldForceCORSPreflight(bool* result) { 1536 void InspectorNetworkAgent::ShouldForceCORSPreflight(bool* result) {
1537 if (state_->booleanProperty(NetworkAgentState::kCacheDisabled, false)) 1537 if (state_->booleanProperty(NetworkAgentState::kCacheDisabled, false))
1538 *result = true; 1538 *result = true;
1539 } 1539 }
1540 1540
1541 } // namespace blink 1541 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698