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

Side by Side Diff: content/browser/service_worker/service_worker_utils.h

Issue 370833002: Move resource_type.* from webkit/ to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chromeos fix Created 6 years, 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_UTILS_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_UTILS_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_UTILS_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_UTILS_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/common/service_worker/service_worker_status_code.h" 9 #include "content/common/service_worker/service_worker_status_code.h"
10 #include "webkit/common/resource_type.h" 10 #include "content/public/common/resource_type.h"
11 11
12 class GURL; 12 class GURL;
13 13
14 namespace content { 14 namespace content {
15 15
16 class ServiceWorkerUtils { 16 class ServiceWorkerUtils {
17 public: 17 public:
18 static bool IsMainResourceType(ResourceType::Type type) { 18 static bool IsMainResourceType(ResourceType::Type type) {
19 return ResourceType::IsFrame(type) || 19 return ResourceType::IsFrame(type) ||
20 ResourceType::IsSharedWorker(type); 20 ResourceType::IsSharedWorker(type);
(...skipping 21 matching lines...) Expand all
42 private: 42 private:
43 const GURL url_; 43 const GURL url_;
44 GURL match_; 44 GURL match_;
45 45
46 DISALLOW_COPY_AND_ASSIGN(LongestScopeMatcher); 46 DISALLOW_COPY_AND_ASSIGN(LongestScopeMatcher);
47 }; 47 };
48 48
49 } // namespace content 49 } // namespace content
50 50
51 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_UTILS_H_ 51 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698