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

Side by Side Diff: chrome/browser/web_applications/update_shortcut_worker_win.h

Issue 2721553002: Make web_app::ShortcutInfo RefCountedThreadSafe (1) (Closed)
Patch Set: TestBrowserThreadBundle for mac test fix Created 3 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
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 CHROME_BROWSER_WEB_APPLICATIONS_UPDATE_SHORTCUT_WORKER_WIN_H_ 5 #ifndef CHROME_BROWSER_WEB_APPLICATIONS_UPDATE_SHORTCUT_WORKER_WIN_H_
6 #define CHROME_BROWSER_WEB_APPLICATIONS_UPDATE_SHORTCUT_WORKER_WIN_H_ 6 #define CHROME_BROWSER_WEB_APPLICATIONS_UPDATE_SHORTCUT_WORKER_WIN_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/shell_integration.h" 9 #include "chrome/browser/shell_integration.h"
10 #include "chrome/browser/web_applications/web_app.h" 10 #include "chrome/browser/web_applications/web_app.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 content::NotificationRegistrar registrar_; 66 content::NotificationRegistrar registrar_;
67 67
68 // Underlying WebContents whose shortcuts will be updated. 68 // Underlying WebContents whose shortcuts will be updated.
69 content::WebContents* web_contents_; 69 content::WebContents* web_contents_;
70 70
71 // Icons info from web_contents_'s web app data. 71 // Icons info from web_contents_'s web app data.
72 web_app::IconInfoList unprocessed_icons_; 72 web_app::IconInfoList unprocessed_icons_;
73 73
74 // Cached shortcut data from the web_contents_. 74 // Cached shortcut data from the web_contents_.
75 std::unique_ptr<web_app::ShortcutInfo> shortcut_info_; 75 scoped_refptr<web_app::ShortcutInfo> shortcut_info_;
76 76
77 // Our copy of profile path. 77 // Our copy of profile path.
78 base::FilePath profile_path_; 78 base::FilePath profile_path_;
79 79
80 // File name of shortcut/ico file based on app title. 80 // File name of shortcut/ico file based on app title.
81 base::FilePath file_name_; 81 base::FilePath file_name_;
82 82
83 // Existing shortcuts. 83 // Existing shortcuts.
84 std::vector<base::FilePath> shortcut_files_; 84 std::vector<base::FilePath> shortcut_files_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(UpdateShortcutWorker); 86 DISALLOW_COPY_AND_ASSIGN(UpdateShortcutWorker);
87 }; 87 };
88 88
89 } // namespace web_app 89 } // namespace web_app
90 90
91 #endif // CHROME_BROWSER_WEB_APPLICATIONS_UPDATE_SHORTCUT_WORKER_WIN_H_ 91 #endif // CHROME_BROWSER_WEB_APPLICATIONS_UPDATE_SHORTCUT_WORKER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698