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

Side by Side Diff: components/keyed_service/core/service_access_type.h

Issue 839193002: Move ServiceAccessType into //components/keyed_service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation on android Created 5 years, 11 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
(Empty)
1 // Copyright 2015 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.
4
5 #ifndef COMPONENTS_KEYED_SERVICE_CORE_SERVICE_ACCESS_TYPE_H_
6 #define COMPONENTS_KEYED_SERVICE_CORE_SERVICE_ACCESS_TYPE_H_
7
8 // Some KeyedServices are accessed with the following parameter. This parameter
9 // defines what the caller plans to do with the service.
10 //
11 // The caller is responsible for not performing any operation that would
12 // result in persistent implicit records while using an OffTheRecord context.
13 // This flag allows the context to perform an additional check.
14 //
15 // It also leaves an opportunity to perform further checks in the future. For
16 // example an history service that only allow some specific methods could be
17 // returned.
18 enum class ServiceAccessType {
19 // The caller plans to perform a read or write that takes place as a result
20 // of the user input. Use this flag when the operation can be performed while
21 // incognito (for example creating a bookmark).
22 //
23 // Since EXPLICIT_ACCESS means "as a result of a user action", this request
24 // always succeeds.
25 EXPLICIT_ACCESS,
26
27 // The caller plans to call a method that will permanently change some data
28 // in the context, as part of Chrome's implicit data logging. Use this flag
29 // before performing an operation which is incompatible with the incognito
30 // mode.
31 IMPLICIT_ACCESS
32 };
33
34 #endif // COMPONENTS_KEYED_SERVICE_CORE_SERVICE_ACCESS_TYPE_H_
OLDNEW
« no previous file with comments | « components/keyed_service/core/BUILD.gn ('k') | components/search_engines/template_url_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698