// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_
#define CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_

#include "base/basictypes.h"

#include "testing/gtest/include/gtest/gtest_prod.h"

class Browser;
class FilePath;
namespace IPC {
class Message;
}

class PrintDialogCloud {
 public:
  // Called on the IO thread.
  static void CreatePrintDialogForPdf(const FilePath& path_to_pdf);

 private:
  FRIEND_TEST(PrintDialogCloudTest, HandlersRegistered);

  explicit PrintDialogCloud(const FilePath& path_to_pdf);
  ~PrintDialogCloud();

  // Called as a task from the UI thread, creates an object instance
  // to run the HTML/JS based print dialog for printing through the cloud.
  static void CreateDialogImpl(const FilePath& path_to_pdf);

  Browser* browser_;

  DISALLOW_COPY_AND_ASSIGN(PrintDialogCloud);
};

#endif  // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_

// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_
#define CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_

#include "base/basictypes.h"

#include "testing/gtest/include/gtest/gtest_prod.h"

class Browser;
class FilePath;
namespace IPC {
class Message;
}

class PrintDialogCloud {
 public:
  // Called on the IO thread.
  static void CreatePrintDialogForPdf(const FilePath& path_to_pdf);

 private:
  FRIEND_TEST(PrintDialogCloudTest, HandlersRegistered);
  FRIEND_TEST(PrintDialogCloudTest, DISABLED_HandlersRegistered);

  explicit PrintDialogCloud(const FilePath& path_to_pdf);
  ~PrintDialogCloud();

  // Called as a task from the UI thread, creates an object instance
  // to run the HTML/JS based print dialog for printing through the cloud.
  static void CreateDialogImpl(const FilePath& path_to_pdf);

  Browser* browser_;

  DISALLOW_COPY_AND_ASSIGN(PrintDialogCloud);
};

#endif  // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_

Fix the build by updating FRIEND_TEST line.
Fix the build by updating FRIEND_TEST line.

TBR=maruel

BUG=44547

Review URL: http://codereview.chromium.org/2083013

git-svn-id: http://src.chromium.org/svn/trunk/src@47646 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

Former-commit-id: b756479cc600c3c5ca9c0ab66c4d59e98afcb34d