OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_MEDIA_GALLERY_MEDIA_GALLERIES_TEST_UTIL_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_TEST_UTIL_H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_TEST_UTIL_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_TEST_UTIL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 | 11 |
12 namespace extensions { | 12 namespace extensions { |
13 class Extension; | 13 class Extension; |
14 } | 14 } |
15 | 15 |
16 class Profile; | 16 class Profile; |
17 | 17 |
18 namespace chrome { | 18 namespace chrome { |
19 | 19 |
20 scoped_refptr<extensions::Extension> AddMediaGalleriesApp( | 20 scoped_refptr<extensions::Extension> AddMediaGalleriesApp( |
21 const std::string& name, | 21 const std::string& name, |
22 const std::vector<std::string>& media_galleries_permissions, | 22 const std::vector<std::string>& media_galleries_permissions, |
23 Profile* profile); | 23 Profile* profile); |
24 | 24 |
25 class EnsureMediaDirectoriesExists { | 25 class EnsureMediaDirectoriesExists { |
26 public: | 26 public: |
27 EnsureMediaDirectoriesExists(); | 27 EnsureMediaDirectoriesExists(); |
28 | 28 |
29 bool AddNewFileInGallery(int gallery_directory_key); | |
Lei Zhang
2012/12/15 01:11:54
This shouldn't be part of EnsureMediaDirectoriesEx
kmadhusu
2012/12/17 23:58:05
Removed. Added this function to the media_gallerie
| |
30 | |
29 int num_galleries() const { return num_galleries_; } | 31 int num_galleries() const { return num_galleries_; } |
30 | 32 |
31 private: | 33 private: |
32 void Init(); | 34 void Init(); |
33 | 35 |
34 base::ScopedTempDir fake_dir_; | 36 base::ScopedTempDir fake_dir_; |
35 | 37 |
36 int num_galleries_; | 38 int num_galleries_; |
37 | 39 |
38 DISALLOW_COPY_AND_ASSIGN(EnsureMediaDirectoriesExists); | 40 DISALLOW_COPY_AND_ASSIGN(EnsureMediaDirectoriesExists); |
39 }; | 41 }; |
40 | 42 |
41 } // namespace chrome | 43 } // namespace chrome |
42 | 44 |
43 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_TEST_UTIL_H_ | 45 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_TEST_UTIL_H_ |
OLD | NEW |