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

Side by Side Diff: chrome/browser/android/most_visited_sites.h

Issue 1030713002: [Suggestions] Remove support for a Control logging group. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: size fix Created 5 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/android/most_visited_sites.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_ANDROID_MOST_VISITED_SITES_H_ 5 #ifndef CHROME_BROWSER_ANDROID_MOST_VISITED_SITES_H_
6 #define CHROME_BROWSER_ANDROID_MOST_VISITED_SITES_H_ 6 #define CHROME_BROWSER_ANDROID_MOST_VISITED_SITES_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 // The profile whose most visited sites will be queried. 102 // The profile whose most visited sites will be queried.
103 Profile* profile_; 103 Profile* profile_;
104 104
105 // The observer to be notified when the list of most visited sites changes. 105 // The observer to be notified when the list of most visited sites changes.
106 base::android::ScopedJavaGlobalRef<jobject> observer_; 106 base::android::ScopedJavaGlobalRef<jobject> observer_;
107 107
108 // The maximum number of most visited sites to return. 108 // The maximum number of most visited sites to return.
109 int num_sites_; 109 int num_sites_;
110 110
111 // Whether the user is in a control group for the purposes of logging.
112 bool is_control_group_;
113
114 // Keeps track of whether the initial NTP load has been done. 111 // Keeps track of whether the initial NTP load has been done.
115 bool initial_load_done_; 112 bool initial_load_done_;
116 113
117 // Counters for UMA metrics. 114 // Counters for UMA metrics.
118 115
119 // Number of tiles using a local thumbnail image for this NTP session. 116 // Number of tiles using a local thumbnail image for this NTP session.
120 int num_local_thumbs_; 117 int num_local_thumbs_;
121 // Number of tiles for which a server thumbnail is provided. 118 // Number of tiles for which a server thumbnail is provided.
122 int num_server_thumbs_; 119 int num_server_thumbs_;
123 // Number of tiles for which no thumbnail is found/specified and a gray tile 120 // Number of tiles for which no thumbnail is found/specified and a gray tile
124 // is used as the main tile. 121 // is used as the main tile.
125 int num_empty_thumbs_; 122 int num_empty_thumbs_;
126 123
127 // Copy of the server suggestions (if enabled). Used for logging. 124 // Copy of the server suggestions (if enabled). Used for logging.
128 suggestions::SuggestionsProfile server_suggestions_; 125 suggestions::SuggestionsProfile server_suggestions_;
129 126
130 ScopedObserver<history::TopSites, history::TopSitesObserver> scoped_observer_; 127 ScopedObserver<history::TopSites, history::TopSitesObserver> scoped_observer_;
131 128
132 MostVisitedSource mv_source_; 129 MostVisitedSource mv_source_;
133 130
134 // For callbacks may be run after destruction. 131 // For callbacks may be run after destruction.
135 base::WeakPtrFactory<MostVisitedSites> weak_ptr_factory_; 132 base::WeakPtrFactory<MostVisitedSites> weak_ptr_factory_;
136 133
137 DISALLOW_COPY_AND_ASSIGN(MostVisitedSites); 134 DISALLOW_COPY_AND_ASSIGN(MostVisitedSites);
138 }; 135 };
139 136
140 #endif // CHROME_BROWSER_ANDROID_MOST_VISITED_SITES_H_ 137 #endif // CHROME_BROWSER_ANDROID_MOST_VISITED_SITES_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/most_visited_sites.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698