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

Side by Side Diff: components/bookmarks/managed/managed_bookmarks_tracker.h

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 COMPONENTS_BOOKMARKS_MANAGED_MANAGED_BOOKMARKS_TRACKER_H_ 5 #ifndef COMPONENTS_BOOKMARKS_MANAGED_MANAGED_BOOKMARKS_TRACKER_H_
6 #define COMPONENTS_BOOKMARKS_MANAGED_MANAGED_BOOKMARKS_TRACKER_H_ 6 #define COMPONENTS_BOOKMARKS_MANAGED_MANAGED_BOOKMARKS_TRACKER_H_
7 7
8 #include "base/basictypes.h" 8 #include <stddef.h>
9 #include <stdint.h>
10
9 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
10 #include "base/macros.h" 12 #include "base/macros.h"
11 #include "base/prefs/pref_change_registrar.h" 13 #include "base/prefs/pref_change_registrar.h"
12 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
13 15
14 class GURL; 16 class GURL;
15 class PrefService; 17 class PrefService;
16 18
17 namespace base { 19 namespace base {
18 class ListValue; 20 class ListValue;
(...skipping 26 matching lines...) Expand all
45 const GetManagementDomainCallback& callback); 47 const GetManagementDomainCallback& callback);
46 ~ManagedBookmarksTracker(); 48 ~ManagedBookmarksTracker();
47 49
48 // Returns the initial list of managed bookmarks, which can be passed to 50 // Returns the initial list of managed bookmarks, which can be passed to
49 // LoadInitial() to do the initial load. 51 // LoadInitial() to do the initial load.
50 scoped_ptr<base::ListValue> GetInitialManagedBookmarks(); 52 scoped_ptr<base::ListValue> GetInitialManagedBookmarks();
51 53
52 // Loads the initial managed/supervised bookmarks in |list| into |folder|. 54 // Loads the initial managed/supervised bookmarks in |list| into |folder|.
53 // New nodes will be assigned IDs starting at |next_node_id|. 55 // New nodes will be assigned IDs starting at |next_node_id|.
54 // Returns the next node ID to use. 56 // Returns the next node ID to use.
55 static int64 LoadInitial(BookmarkNode* folder, 57 static int64_t LoadInitial(BookmarkNode* folder,
56 const base::ListValue* list, 58 const base::ListValue* list,
57 int64 next_node_id); 59 int64_t next_node_id);
58 60
59 // Starts tracking the pref for updates to the managed/supervised bookmarks. 61 // Starts tracking the pref for updates to the managed/supervised bookmarks.
60 // Should be called after loading the initial bookmarks. 62 // Should be called after loading the initial bookmarks.
61 void Init(BookmarkPermanentNode* managed_node); 63 void Init(BookmarkPermanentNode* managed_node);
62 64
63 bool is_supervised() const { return is_supervised_; } 65 bool is_supervised() const { return is_supervised_; }
64 66
65 // Public for testing. 67 // Public for testing.
66 static const char* GetPrefName(bool is_supervised); 68 static const char* GetPrefName(bool is_supervised);
67 69
(...skipping 17 matching lines...) Expand all
85 PrefChangeRegistrar registrar_; 87 PrefChangeRegistrar registrar_;
86 GetManagementDomainCallback get_management_domain_callback_; 88 GetManagementDomainCallback get_management_domain_callback_;
87 89
88 DISALLOW_COPY_AND_ASSIGN(ManagedBookmarksTracker); 90 DISALLOW_COPY_AND_ASSIGN(ManagedBookmarksTracker);
89 }; 91 };
90 92
91 } // namespace bookmarks 93 } // namespace bookmarks
92 94
93 #endif // COMPONENTS_BOOKMARKS_MANAGED_MANAGED_BOOKMARKS_TRACKER_H_ 95 #endif // COMPONENTS_BOOKMARKS_MANAGED_MANAGED_BOOKMARKS_TRACKER_H_
94 96
OLDNEW
« no previous file with comments | « components/bookmarks/managed/managed_bookmark_service.cc ('k') | components/bookmarks/managed/managed_bookmarks_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698