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

Side by Side Diff: webkit/browser/appcache/view_appcache_internals_job.cc

Issue 22314003: NavigationController prototype Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: NavController prototype - chrome side Created 7 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 | Annotate | Revision Log
« no previous file with comments | « webkit/browser/appcache/appcache_url_request_job.cc ('k') | webkit/browser/blob/blob_reader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "webkit/browser/appcache/view_appcache_internals_job.h" 5 #include "webkit/browser/appcache/view_appcache_internals_job.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/base64.h" 10 #include "base/base64.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 if (info.is_master) 178 if (info.is_master)
179 str.append("Master, "); 179 str.append("Master, ");
180 if (info.is_intercept) 180 if (info.is_intercept)
181 str.append("Intercept, "); 181 str.append("Intercept, ");
182 if (info.is_fallback) 182 if (info.is_fallback)
183 str.append("Fallback, "); 183 str.append("Fallback, ");
184 if (info.is_explicit) 184 if (info.is_explicit)
185 str.append("Explicit, "); 185 str.append("Explicit, ");
186 if (info.is_foreign) 186 if (info.is_foreign)
187 str.append("Foreign, "); 187 str.append("Foreign, ");
188 if (info.is_executable)
189 str.append("Executable, ");
190 if (str.length() > 2)
191 str = str.substr(0, str.length() - 2);
188 return str; 192 return str;
189 } 193 }
190 194
191 std::string FormViewEntryAnchor(const GURL& base_url, 195 std::string FormViewEntryAnchor(const GURL& base_url,
192 const GURL& manifest_url, const GURL& entry_url, 196 const GURL& manifest_url, const GURL& entry_url,
193 int64 response_id, 197 int64 response_id,
194 int64 group_id) { 198 int64 group_id) {
195 std::string manifest_url_base64; 199 std::string manifest_url_base64;
196 std::string entry_url_base64; 200 std::string entry_url_base64;
197 std::string response_id_string; 201 std::string response_id_string;
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 return new ViewEntryJob(request, network_delegate, service, 650 return new ViewEntryJob(request, network_delegate, service,
647 DecodeBase64URL(tokens[0]), // manifest url 651 DecodeBase64URL(tokens[0]), // manifest url
648 DecodeBase64URL(tokens[1]), // entry url 652 DecodeBase64URL(tokens[1]), // entry url
649 response_id, group_id); 653 response_id, group_id);
650 } 654 }
651 655
652 return new RedirectToMainPageJob(request, network_delegate, service); 656 return new RedirectToMainPageJob(request, network_delegate, service);
653 } 657 }
654 658
655 } // namespace appcache 659 } // namespace appcache
OLDNEW
« no previous file with comments | « webkit/browser/appcache/appcache_url_request_job.cc ('k') | webkit/browser/blob/blob_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698